
On 09/16/2013 10:29 PM, Ankit Mahato wrote:
Hi R,
Here are the new problem description and solver codes https://github.com/animator/sfepy/tree/phase_change/examples/phase_change/ph...
- It uses sfepy package for properties,mesh,vtkoutputs, etc. How should I integrate into the Solver framework?
Regards, Ankit
There are several possibilities. First, the solvers have a standard way of passing in/processing options, see .process_conf() of any solver, for example in sfepy.solvers.ls. Then the solution is implemented as .__call__().
I would try:
- use TimeStepper or VariableTimeStepper from sfepy.solvers.ts for time stepping
- make PhaseChangeSolver a Solver subclass and use PhaseChangeSolver.process_conf() for its options
- then we will see :)
r.
PS: I see lots of trailing whitespace, bad indentation and other PEP8 problems in your files - what editor do you use? Some setup might be needed. Or try using [1] with tweaks [2] or [3] (some configuration might be required) - manual inspection then needed.
PPS: Setup correctly you git user name and e-mail on all computers you use. The commits so far can be fixed by the attached script taking two arguments - the start commit and end commit (!!!dangerous!!! - use it on a copy of the repo, as it uses the nuclear weapon of git - the filter-branch command).
[1] http://pypi.python.org/pypi/PythonTidy/
[2] COL_LIMIT = 79 DICT_COLON = ' : ' ADD_BLANK_LINES_AROUND_COMMENTS = False MAX_SEPS_FUNC_DEF = 50 # 2007 May 24 PARENTHESIZE_TUPLE_DISPLAY = False # 2010 Mar 10