|
[Sponsors] |
XMDF Grid>Geometry>DataItem> reference to ASCII file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 6, 2018, 05:39 |
XMDF Grid>Geometry>DataItem> reference to ASCII file
|
#1 |
New Member
Bastian
Join Date: Jan 2017
Posts: 2
Rep Power: 0 |
Dear all,
consider the xdmf file below. How can I replace the explicit x-vector `0.0 1.0 2.0 3.0` in the gometry block by a reference to an ASCII file `x.dat`? I searched the internet including the xdmf wiki but none of what I tried worked. Code:
<Xdmf Version="2.0"> <Domain> <Grid Name="mesh" GridType="Uniform"> <Topology TopologyType="3DRectMesh" NumberOfElements="3 2 4"/> <!-- NumberOfElements="Nz Ny Nx" --> <Geometry GeometryType="VXVYVZ"> <DataItem Dimensions="4" NumberType="Float" Precision="4" Format="XML"> <!-- Dimension="Nx" --> 0.0 1.0 2.0 3.0 </DataItem> <DataItem Dimensions="2" NumberType="Float" Precision="4" Format="XML"> <!-- Dimension="Ny" --> 0.0 1.5708 </DataItem> <DataItem Dimensions="3" NumberType="Float" Precision="4" Format="XML"> <!-- Dimension="Nz" --> 0.0 1.0 2.0 </DataItem> </Geometry> <Attribute Name="SomeNodeData" AttributeType="Scalar" Center="Node"> <!-- Center="Node" --> <DataItem Dimensions="3 2 4" NumberType="Float" Precision="4" Format="XML"> <!-- NumberOfElements="Nz Ny Nx" --> <!-- Nz blocks underneath one another, each having Nx columns, Ny rows --> 0.0 0.0 0.0 8.0 8.0 8.0 8.0 8.0 1.0 1.0 1.0 8.0 1.0 1.0 1.0 8.0 2.0 2.0 2.0 8.0 2.0 2.0 2.0 8.0 </DataItem> </Attribute> <Attribute Name="SomeCellData" AttributeType="Scalar" Center="Cell"> <!-- Center="Cell" --> <DataItem Dimensions="2 1 3" NumberType="Float" Precision="4" Format="XML"> <!-- NumberOfElements="Nz Ny Nx" --> <!-- Nz blocks underneath one another, each having Nx columns, Ny rows --> 0.0 1.0 2.0 3.0 4.0 5.0 </DataItem> </Attribute> </Grid> </Domain> </Xdmf> |
|
Tags |
xdmf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LEMOS InflowGenerator | r_gordon | OpenFOAM Running, Solving & CFD | 103 | December 18, 2018 01:58 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |