Skip to content

Commit

Permalink
Further update
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcremmers committed Apr 28, 2022
1 parent 9aeab98 commit e9f88fa
Show file tree
Hide file tree
Showing 2 changed files with 214 additions and 200 deletions.
104 changes: 58 additions & 46 deletions PyFEM.py
Original file line number Diff line number Diff line change
@@ -1,46 +1,58 @@
############################################################################
# This Python file is part of PyFEM, the code that accompanies the book: #
# #
# 'Non-Linear Finite Element Analysis of Solids and Structures' #
# R. de Borst, M.A. Crisfield, J.J.C. Remmers and C.V. Verhoosel #
# John Wiley and Sons, 2012, ISBN 978-0470666449 #
# #
# The code is written by J.J.C. Remmers, C.V. Verhoosel and R. de Borst. #
# #
# The latest stable version can be downloaded from the web-site: #
# http://www.wiley.com/go/deborst #
# #
# A github repository, with the most up to date version of the code, #
# can be found here: #
# https://github.com/jjcremmers/PyFEM #
# #
# The code is open source and intended for educational and scientific #
# purposes only. If you use PyFEM in your research, the developers would #
# be grateful if you could cite the book. #
# #
# 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. #
############################################################################

import sys,os
sys.path.insert(0, os.getcwd() )

from pyfem.io.InputReader import InputReader
from pyfem.io.OutputManager import OutputManager
from pyfem.solvers.Solver import Solver

props,globdat = InputReader( sys.argv )

solver = Solver ( props , globdat )
output = OutputManager ( props , globdat )

while globdat.active:
solver.run( props , globdat )
output.run( props , globdat )

print("PyFem analysis terminated successfully.")



############################################################################
# This Python file is part of PyFEM, the code that accompanies the book: #
# #
# 'Non-Linear Finite Element Analysis of Solids and Structures' #
# R. de Borst, M.A. Crisfield, J.J.C. Remmers and C.V. Verhoosel #
# John Wiley and Sons, 2012, ISBN 978-0470666449 #
# #
# Copyright (C) 2011-2022. The code is written in 2011-2012 by #
# Joris J.C. Remmers, Clemens V. Verhoosel and Rene de Borst and since #
# then augmented and maintained by Joris J.C. Remmers. #
# All rights reserved. #
# #
# The latest stable version can be downloaded from the web-site: #
# http://www.wiley.com/go/deborst #
# #
# A github repository, with the most up to date version of the code, #
# can be found here: #
# https://github.com/jjcremmers/PyFEM #
# #
# The code is open source and intended for educational and scientific #
# purposes only. If you use PyFEM in your research, the developers would #
# be grateful if you could cite the book. #
# #
# 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. #
############################################################################

import sys,os
sys.path.insert(0, os.getcwd() )

import time

from pyfem.io.InputReader import InputReader
from pyfem.io.OutputManager import OutputManager
from pyfem.solvers.Solver import Solver

t1 = time.time()

props,globdat = InputReader( sys.argv )

solver = Solver ( props , globdat )
output = OutputManager ( props , globdat )

while globdat.active:
solver.run( props , globdat )
output.run( props , globdat )

t2 = time.time()

total = t2-t1
print("Time elapsed = ",total," [s].\n")

print("PyFem analysis terminated successfully.")



Loading

0 comments on commit e9f88fa

Please sign in to comment.