Main Help → All Commands → XML Commands → XMLData
The XMLData
command allows you to insert XML commands into the interpretation results. The format is:
XMLData <(section)>,<(matid)> <tag> Inserted xml characters </tag> EndXMLData
where
(section)
indicates the section where the XML
data will be inserted (if it is omitted, it is set to "End"
).
"Header"
to insert at the end of the Header
section."MPMHeader"
to insert at the end of the MPMHeader
section (MPM Only)."Mesh"
to insert at the end of the Mesh
section."MaterialPoints"
to intersperse in the MaterialPoints
definition section of MPM files or with shape commands in FEA files to define the mesh. It may be interspersed with Region, Hole, and BMPRegion commands."CrackList"
to intersperse with commands to create cracks. The <CrackList> element will automatically be created meaning the inserted XML
data should be command to create a single and complete crack.
"Materials"
to intersperse a custom material definition along with other materials. Each insertion for this section must define a single material using a single Material
command block:
<Material Type="20" Name="New Material"> (property commands) </Material>where the property commands set the material properties and the second parameter must provide a unique material ID (which can be used like regular material IDs). This option is provided to work with materials in the code engines that are not yet supported by NairnFEAMPM.
"GridBCs"
to intersperse with commands in the GridBCs
section."ParticleBCs"
to insert at the end of the ParticleBCs
section (MPM Only)."Thermal"
to insert at the end of the Thermal
section."Gravity"
to insert at the end of the Gravity
section."CustomTasks"
to insert at the end of the Thermal
section (MPM Only)."End"
to insert at the end of all other XML
data.(matid)
specifies a material ID whenever (section)
is "Materials"
(see above for details)The XML
data to be inserted will be all lines between the XMLData
command and the EndXMLData Command. You can have multuple XMLData blocks for each section and subsquent blocks will be appended to previous blocks for each section. For "MaterialPoints", "Materials", "GridBCs", and "ParticleBCs", the data will be inserted when the XMLData command is used. This approach allows you to intermingle XML features with scripted features in these sections.
XML
commands in the code engines that are not yet supported by regular commands in NairnFEAMPM (see OSUPDocs wiki for documentation of those commands).XML
comments.