Regenerate the three-dimensional, eight node finite element from chapter Mixed 3D Solid FE for AceFEM for ELFEN environment.
Generation of element source code for ELFEN environment
The AceGen input presented in previous example can be used again with the "Environment"→"ELFEN" option to produce Elfen's source code file. However, due to the non-standard approach to the implementation of the Newton-Raphson loop in ELFEN result would not be the most efficient. More efficient implementation is obtained if the evaluation of the tangent matrix and residual vector are separated. The procedure is controlled by the values of environment constants "SkipTangent", "SkipResidual" and "SubIterationMode".
When the tangent matrix is required the variables are set to
idata$$["SkipTangent"]=0,
idata$$["SkipResidual"]=1,
idata$$["SubIterationMode"]=1
and when the residual is required the variables are set to
idata$$["SkipTangent"]=1,
idata$$["SkipResidual"]=0,
idata$$["SubIterationMode"]=0.
Additionally, the non-standard evaluation of the Newton-Raphson loop makes implementation of the mixed FE models difficult. Thus only displacement element is generated.
The generated code is then incorporated into ELFEN.
b:7.5
SMSWrite[];
Here is the generated element compiled and linked into the ELFEN's Visual Studio project. See Install.txt for details. The SMSELFENRun function then starts ELFEN with a ELFENExample.dat file as a input file and a tmp.res file as output file. The ELFEN input data file for the one element test example is available in a $BaseDirectory/Applications/AceGen/Include/ELFEN/ directory.
Created by Wolfram Mathematica 6.0 (12 August 2007) |