-
Notifications
You must be signed in to change notification settings - Fork 19
General input format
The input format in IFEM is xml-based. If you do not know the general anatomy of an XML file, we suggest you go read about it.
In general, an XML tag is of the format
<tag attribute="something">somevalue</tag>
For convenience, IFEM also allows you to use
<tag attribute="something" value="somevalue"/>
if the "somevalue" is of a basic type (like int, double, bool, etc.).
The general format of an input file is
<simulation>
<settingcontext1>
<setting1/>
<setting2/>
</settingcontext1>
<settingcontext2>
<setting1/>
<setting2/>
</settingcontext2>
</simulation>
The <simulation> tag is the root tag and shall always be present. Additionally, all contexts can be used in an application-specific super-context. The settings will then only be applied to the particular (sub)-solver.
You can use include statements and put parts of an input file in another file.
<simulation>
<include>geometry.xinp</include>
...
</simulation>
The input file is preparsed, and the contents of the included file replaces the include tag, i.e., with
<geometry>
<patchfile>foo.g2</patchfile>
</geometry>
in geometry.xinp, the final parsed input would look like
<simulation>
<geometry>
<patchfile>foo.g2</patchfile>
</geometry>
</simulation>
- The <adaptive> context
- The <anasol> context
- The <boundaryconditions> context
- The <discretization> context
- The <eigensolver> context
- The <geometry> context
- The <initialconditions> context
- The <linearsolver> context
- The <newmarksolver> context
- The <nonlinearsolver> context
- The <postprocessing> context
- The <restart> context