An XDMF Grid for a single element or condition.
More...
An XDMF Grid for a single element or condition.
◆ __init__()
def core.xdmf.UniformGrid.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
geom, |
|
|
|
topology |
|
) |
| |
Construct the object.
Keyword arguments:
name -- the grid name (normally the element or condition name)
geom -- the XDMF Geometry (nodal coordinates, see Geometry)
topology -- the XDMF Topology (mesh connectivities, see Topology)
◆ add_attribute()
def core.xdmf.UniformGrid.add_attribute |
( |
|
self, |
|
|
|
attr |
|
) |
| |
◆ create_xml_element()
def core.xdmf.UniformGrid.create_xml_element |
( |
|
self | ) |
|
Return the XDMF item as an XML element node in the XML document tree.
If the node is the root element of the XML document, it can be written
to a file as:
root = obj.create_xml_element()
ElementTree(root).write(file_or_filename)
If it is a child node, it can be appended to its parent as:
child = obj.create_xml_element()
parent.append(child)
An entire XML document representing an XDMF model is built from a set
of XdmfItem objects by combining their XML nodes in an XML tree.
Reimplemented from core.xdmf.XdmfItem.
◆ attributes
core.xdmf.UniformGrid.attributes |
◆ geometry
core.xdmf.UniformGrid.geometry |
◆ name
core.xdmf.UniformGrid.name |
◆ topology
core.xdmf.UniformGrid.topology |
The documentation for this class was generated from the following file:
- /home/runner/work/Documentation/Documentation/master/applications/HDF5Application/python_scripts/core/xdmf.py