Skip to content

Ideas for Refactor

Malachi edited this page Nov 10, 2016 · 4 revisions

Parser Refactor:

  • Enforce one universal parsing system
    • Hide parser parameters away in the Equation

Boundary Condition Refactor:

  • Pass in the initial conditions
  • Use said initial conditions to find values on the boundary

Refactor Solution Procedure:

Much of the code in the solution procedure is similar to others. Instead of solution procedure for each method, only need 1-2 solution procedures. Children class would need their own apply_step(), write_to_file(), constructor (to dim 1D or 2D size)

Could divide as:

  • Solution Procedure iterative in time

  • Solution procedure for steady-state problems, such as solution of Laplace equation

Alternatively, could have a separate routine to solve steady-state problems


Make only one solution procedure, but handle all the other data in an equation that holds the details

Clone this wiki locally