ReadFluent

Synopsis

Reads the Fluent Universal file format as written by Fluent v4.5 . This reader supports the ASCII output from Fluent. Binary files are not supported.

Parameters

ReadFluentParams
Name Type Description UI Control

filename string Name of Fluent file to read. File Dialog
load int Triggers loading of the Fluent file. Button

Output Ports

Name Type Description

out_mesh Mesh_Struct+Node_Data Structured mesh read from Fluent file.
out_obj DefaultObject DataObject which can directly be rendered by the standard data viewers.

Description

This code segment reads the Fluent Universal format, output by Fluent v4.5 This code is the structured code of Fluent. It only handles single block curvilinear grids. It is assumed here that the velocities are stored in curvi-linear mode. See Fluent's USE CYLINDRICAL VELOCITIES flag. No attempt is made here to convert from cartesian velocities.

This reader olny supports the ASCII output from Fluent. Binary is not supported.

Reading Fluent's document "Appendix A, pp 1-52, Description of the FLUENT Universal File" May 10, 1997, is recommended.

Parameters

ReadFluentParams

filename

String parameter that specifies which Fluent file should be read. The filename string should contain the full path name of the file and can contain any of the AVS/Express environment variables (e.g. $XP_PATH<1>)

load

Integer parameter that triggers the loading of the Fluent file.

Outputs

out_mesh

Structured mesh + Node data output that contains the geometry and attached data values read from the Fluent file. The output consists of the nodal coordinates, connectivity information and the data values per node.

out_obj

The directly renderable output of the ReadFluent macro. This output contains the geometry data read from the Fluent file in a form that can directly be rendered by the standard data viewers.

Utility Macros

The ReadFluentFunc functional macro uses the low-level read_fluent_core module. The macro takes as input the parameter blocks, ReadFluentParams. The macro outputs the data read from the Fluent file as structured mesh with node data.

The ReadFluentFunc functional macro and the ReadFluentUI user interface macro are both used by the ReadFluent user macro. All of these macros use the ReadFluentParams parameter block to communicate. Additional to the mesh the ReadFluent user macro has an output for a DefaultObjects which can directly be rendered by the standard data viewers.

Example

The project includes an example application that demonstrates the use of the ReadFluent macro. The ReadFluentEg application uses the ReadFluent macro to read an Fluent file (ascii) as it is produced by FLUENT version 4.5. The Example contains an isosurface and a bounds module to show the inner structure of the mesh which is read by the ReadFluentMacro.

Files

iac_proj/rdfluent/rdflmods.v contains the V definitions of the read_fluent_core module and the ReadFluentParams parameter block.

iac_proj/rdfluent/rdflmacs.v contains the V definitions of the ReadFluentUI UI macro, the ReadFluentFunc functional macro and the ReadFluent user macro.

iac_proj/rdfluent/rdflapps.v contains the V definitions of the ReadFluentEg example application.

Other Notes

The low-level ReadFluentMods library containing the low-level module read_fluent_core does not specify a process. By default the express process will be used.

Author

Dr. Jean M. Favre,;
CSCS, Swiss Center for Scientific Computing 
Via Cantonale, 6928 Manno, Switzerland

Modifications

Tobias Schiebeck,
International AVS Centre

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also