FEM: solver run, add method to run fem solver and use in commands and example module

This commit is contained in:
Bernd Hahnebach
2019-03-21 21:35:28 +01:00
committed by wmayer
parent caacf94578
commit 6a3f0dc936
3 changed files with 66 additions and 38 deletions

View File

@@ -61,11 +61,8 @@ def run_analysis(doc, base_name, filepath=''):
working_dir = getpath(solver)
# run analysis
from femsolver.run import RESULTS
machine = solver.Proxy.createMachine(solver, working_dir)
machine.target = RESULTS
machine.start()
machine.join() # wait for the machine to finish.
from femsolver.run import run_fem_solver
run_fem_solver(solver, working_dir)
# save doc once again with results
doc.save()