#!/usr/bin/env python from pyfem.io.InputReader import InputReader from pyfem.io.OutputManager import OutputManager from pyfem.solvers.Solver import Solver import sys import os pathname = os.path.dirname(sys.argv[0]) filename = os.path.basename(__file__) param1 = pathname + '/' + filename param2 = pathname + '/examples/basictest/Timoshenkobeam.pro' sys.argv = [param1, param2] properties, global_data = InputReader(sys.argv) solver = Solver(properties, global_data) output = OutputManager(properties, global_data) while global_data.active: solver.run(properties, global_data) output.run(properties, global_data) print "PyFem analysis terminated successfully."
# Disclaimer: # # The authors reserve all rights but do not guarantee that the code is # # free from errors. Furthermore, the authors shall not be liable in any # # event caused by the use of the program. # ############################################################################ #!/usr/bin/env python from pyfem.io.InputReader import InputReader from pyfem.io.OutputWriter import OutputWriter from pyfem.io.MeshWriter import MeshWriter from pyfem.io.GraphWriter import GraphWriter from pyfem.solvers.NonlinearSolver import NonlinearSolver import sys props, globdat = InputReader(sys.argv) solver = NonlinearSolver(props, globdat) outputWriter = OutputWriter(props, globdat) meshWriter = MeshWriter(props, globdat) graphWriter = GraphWriter(props, globdat) while globdat.active: solver.run(props, globdat) outputWriter.run(props, globdat) meshWriter.run(props, globdat) graphWriter.run(props, globdat) print("Newton-Raphson solver terminated succesfully")