forked from jjcremmers/PyFEM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aeab98
commit e9f88fa
Showing
2 changed files
with
214 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.") | ||
|
||
|
||
|
Oops, something went wrong.