CFDread_cgns

Synopsis

The CFDread_cgns module reads CGNS format files. CGNS files are used for the storage and retrieval of CFD data

module CFDread_cgns <link_files="-lcfd_mods -lcgns">{
string+IPort2 file_name;
string+OPort2 status;
boolean+IPort2 load; // trigger
int CurrentBase;
int CurrentActiveZones[];
int CurrentSolutions[];
omethod+notify_val+notify_inst+req scan_cgns (
file_name+read+req,BaseInfo+write,ZoneInfo+write,
status+write) = "CFDread_cgns_scan";
omethod+notify+req base_change_cgns (
CurrentBase+read+req,BaseInfo+write,ZoneInfo+write,
status+write) = "CFDread_cgns_base_change";
CgnsBaseInfo+OPort2 BaseInfo;
CgnsZoneInfo+OPort2 ZoneInfo;
omethod+notify+req load_cgns<status=1> (
file_name+read+nonotify+req,
load+read+notify+req, // trigger
CurrentBase+read+nonotify+req,
CurrentActiveZones+nonotify+read,
CurrentSolutions+nonotify+read,
BaseInfo+nonotify+read,
ZoneInfo+nonotify+read,
Multi_Block+write,Multi_Block_Unstr+write,
status+write) = "CFDread_cgns_load";
Multi_Block+OPort2+nosave Multi_Block {
nblocks = 0;fields+Cell_Data;};
group+OPort2+nosave Multi_Block_Unstr {
int nblocks = 0;
Mesh+Node_Data+Cell_Data+OPort2
fields[nblocks] {
ncell_sets = 0;
};
};
};

V name

CFD.CFDread_cgns

Description

The CFDread_cgns module reads CGNS format files. CGNS files are used for the storage and retrieval of CFD data. The read_cgns macro takes a filename, reads the CGNS file and outputs a Multi_Block group that contains structured Zones and an array of fields that contains the unstructured Zones. The user interface allows the user to select which Base to read. It also allows the user to select which Zones to read and which Solution to read for each Zone.

Input

filename

string Name of CGNS file to read.

load

int Triggers loading of selected data from CGNS file.

status

string Reports any error during file loading.

Output

currentBase

int Selected Base.

currentActiveZones[]

int[] Specifies which zones should be read.

currentSolution[]

int[] Specifies which solution should be read for each zone.

Example

Not available.

File

v/cfd.v

See also

Not applicable.