CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Visualization & Post-Processing

XMDF Grid>Geometry>DataItem> reference to ASCII file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2018, 04:39
Default XMDF Grid>Geometry>DataItem> reference to ASCII file
  #1
New Member
 
Bastian
Join Date: Jan 2017
Posts: 2
Rep Power: 0
baloe is on a distinguished road
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>
baloe is offline   Reply With Quote

Reply

Tags
xdmf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 00:58
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 02:28.