Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8265921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:58:15+00:00 2026-06-08T04:58:15+00:00

For those who don’t know about this sort of thing. It’s basically 3D vector

  • 0

For those who don’t know about this sort of thing. It’s basically 3D vector relationships I am messing about with here…

I am making a little project to make useful electromagnetism calculations but I am not sure how to design it to prepare for future uses and other applications too.

Eventually I will have some graph outputs and make a gui of it but at the moment I just want it to be a terminal based program.

At the moment I am thinking to have a class called

RadialForm 

which is for identities and nothing will be in component form in that Class. I will then have another class called

ComponentForm

which will do all computations for transforming coordinates with the main methods being

setRectangular(i j k)
setCylindrical(i j k) 
setSpherical(i j k)
computeCurl(i j k) //not sure if these last two should be in another class so I gave them arguments 
computeDiv(i j k)

Then later, I am going to want to be able to use Gauss’ Stokes and Greens theories on the RadialFrom and the ComponentForm classes, so I am thinking this should be another class too. I have an idea that there should be some sort of inheritance structure going on but I am not really confident deciding what goes where.

Also, both of the classes will be manipulated with a ‘divergence’ operator to get the curl and results from identities and do lots of other important stuff.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:58:17+00:00Added an answer on June 8, 2026 at 4:58 am

    Key word here is decomposition: don’t try to put everything to just one (or in your case – just 2) classes, put every separate piece of functionality to separate class. This means that you need distinct classes for vectors (points) and probably for every algorithm. To make your design more reusable, consider introducing interfaces for similar tasks (say, for algorithms).

    OOP is also strong in modeling of domain area objects and their relations. So try to lie down all objects from the domain you may need. Note, however, that sometime (in scientific programs especially) you may need additional classes just manipulate existing. Here your ComponentForm is good example.

    Concerning inheritance, general rule is: if you are not sure, don’t use it. Interfaces or delegation (depending on your needs) is better option in most cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the wiki for those who want to know about Apache CXF. http://en.wikipedia.org/wiki/Apache_CXF
For those who don't know the model. You can read this pdf . I
For all those who don't know what I am talking about, it's glTail from
I've implemented a simple PowerShell NavigationCmdletProvider . For those who don't know, this means
This is a bit confused question for those who don't now advanced SQL... However.
My current solution will suck sometimes EDIT For those who don't understand,see this example:
For those who don't know GNASH is an open source flash movie player. It
I'm learning processing (for those who don't know its a java-based language geared towards
I have two Resources files under App_GlobalResources MyApp.resx MyApp.sv.resx for those who don't know:
For those who don't know, FizzBuzz is the following problem: Write a program that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.