ParaView/Visualizing PHASTA with SyncIO

From PHASTA Wiki
Jump to: navigation, search

Running Paraview on a viz Node

 portal1 $ vglconnect viz002
 viz002 $ soft add +paraview-5.2.0-gnu-ompi
 viz002 $ vglrun paraview

Defining the PHASTA Input

There are two extensions:

pht -> POSIX files

phts -> SyncIO files


A Two Phase Case

An example phts file for a two phase, four process case using one syncio file is below.

 <?xml version="1.0" ?>
 <PhastaMetaFile number_of_pieces="4"
               number_of_files="1">
  <GeometryFileNamePattern pattern="4-procs_case-SyncIO-1/geombc-dat.%d"
                           has_piece_entry="1"
                           has_time_entry="0"/>
  <FieldFileNamePattern pattern="4-procs_case-SyncIO-1/restart-dat.%d.%d"
                        has_piece_entry="1"
                        has_time_entry="1"/>
  <TimeSteps number_of_steps="1"
             auto_generate_indices="1"
             start_index="0"
             increment_index_by="1"
             start_value="0"
             increment_value_by="1">
  </TimeSteps>
  <Fields number_of_fields="5">
    <Field paraview_field_tag="velocity"
           phasta_field_tag="solution"
           number_of_components="3"
           data_dependency="0"
           data_type="double"/>
    <Field paraview_field_tag="pressure"
           phasta_field_tag="solution"
           start_index_in_phasta_array="0"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
    <Field paraview_field_tag="scr1"
           phasta_field_tag="solution"
           start_index_in_phasta_array="5"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
    <Field paraview_field_tag="scr2"
           phasta_field_tag="solution"
           start_index_in_phasta_array="6"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
    <Field paraview_field_tag="temperature"
           phasta_field_tag="solution"
           start_index_in_phasta_array="4"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
  </Fields>
 </PhastaMetaFile>


A Single Phase Case

An example phts file for a single phase, 2048 process case using 16 syncio files is below.

 <?xml version="1.0" ?>
 <PhastaMetaFile number_of_pieces="2048"
               number_of_files="16">
  <GeometryFileNamePattern pattern="2048-procs_case/geombc-dat.%d"
                           has_piece_entry="1"
                           has_time_entry="0"/>
  <FieldFileNamePattern pattern="2048-procs_case/restart-dat.%d.%d"
                           has_piece_entry="1"
                           has_time_entry="1"/>
  <TimeSteps number_of_steps="1"
             auto_generate_indices="1"
             start_index="800"
             increment_index_by="1"
             start_value="800"
             increment_value_by="1">
  </TimeSteps>
  <Fields number_of_fields=“8">
    <Field phasta_field_tag="errors"
           paraview_field_tag="pde-res"
           start_index_in_phasta_array="0"
           number_of_components="3"
           data_dependency="0"
           data_type="double"/>
    <Field phasta_field_tag="errors"
           paraview_field_tag="rms-vel"
           start_index_in_phasta_array="6"
           number_of_components="3"
           data_dependency="0"
           data_type="double"/>
    <Field phasta_field_tag="ybar"
           paraview_field_tag="EVbar"
           start_index_in_phasta_array="12"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
    <Field phasta_field_tag="solution"
           paraview_field_tag="u"
           start_index_in_phasta_array="1"
           number_of_components="3"
           data_dependency="0"
           data_type="double"/>
    <Field phasta_field_tag="solution"
           paraview_field_tag="pressure"
           start_index_in_phasta_array="0"
           number_of_components="1"
           data_dependency="0"
           data_type="double”/>
    <Field phasta_field_tag="solution"
           paraview_field_tag="eddy visocity"
           start_index_in_phasta_array="5"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
    <Field phasta_field_tag="dwal"
           paraview_field_tag="dwal"
           start_index_in_phasta_array="0"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
    <Field phasta_field_tag="vorticity"
           paraview_field_tag="Q"
           start_index_in_phasta_array="4"
           number_of_components="1"
           data_dependency="0"
           data_type="double"/>
 </Fields>
 </PhastaMetaFile>