Functions | Modes |
---|---|
ier = cg_base_write(int fn, char *basename, int cell_dim, int phys_dim, int *B); | - w m |
ier = cg_nbases(int fn, int *nbases); | r - m |
ier = cg_base_read(int fn, int B, char *basename, int *cell_dim, int *phys_dim); | r - m |
ier = cg_cell_dim(int fn, int B, int *cell_dim); | r - m |
call cg_base_write_f(fn, basename, cell_dim, phys_dim, B, ier) | - w m |
call cg_nbases_f(fn, nbases, ier) | r - m |
call cg_base_read_f(fn, B, basename, cell_dim, phys_dim, ier) | r - m |
call cg_cell_dim_f(fn, B, cell_dim, ier) | r - m |
fn | CGNS file index number. | ||
B | Base index number, where 1 ≤ B ≤ nbases. | ||
nbases | Number of bases present in the CGNS file fn. | ||
basename | Name of the base. | ||
cell_dim | Dimension of the cells; 3 for volume cells, 2 for surface cells and 1 for line cells. | ||
phys_dim | Number of coordinates required to define a vector in the field. | ||
ier | Error status. |
Functions | Modes |
---|---|
ier = cg_zone_write(int fn, int B, char *zonename, cgsize_t *size, ZoneType_t zonetype, int *Z); | - w m |
ier = cg_nzones(int fn, int B, int *nzones); | r - m |
ier = cg_zone_read(int fn, int B, int Z, char *zonename, cgsize_t *size); | r - m |
ier = cg_zone_type(int fn, int B, int Z, ZoneType_t *zonetype); | r - m |
ier = cg_index_dim(int fn, int B, int Z, int *index_dim); | r - m |
call cg_zone_write_f(fn, B, zonename, size, zonetype, Z, ier) | - w m |
call cg_nzones_f(fn, B, nzones, ier) | r - m |
call cg_zone_read_f(fn, B, Z, zonename, size, ier) | r - m |
call cg_zone_type_f(fn, B, Z, zonetype, ier) | r - m |
call cg_index_dim_f(fn, B, Z, index_dim, ier) | r - m |
fn | CGNS file index number. | |||||||||||||||||
B | Base index number, where 1 ≤ B ≤ nbases. | |||||||||||||||||
Z | Zone index number, where 1 ≤ Z ≤ nzones. | |||||||||||||||||
nzones | Number of zones present in base B. | |||||||||||||||||
zonename | Name of the zone. | |||||||||||||||||
size | Number of vertices, cells, and boundary vertices in each
(index)-dimension.
Note that for unstructured grids, the number of cells is the number of highest order elements. Thus, in three dimensions it's the number of 3-D cells, and in two dimensions it's the number of 2-D cells. Also for unstructured grids, if the nodes are sorted between internal nodes and boundary nodes, the optional parameter NBoundVertex must be set equal to the number of boundary nodes. By default, NBoundVertex equals zero, meaning that the nodes are unsorted.
Note that a non-zero value for NBoundVertex only applies
to unstructured grids.
For structured grids, the NBoundVertex parameter always
equals 0 in all directions.
| |||||||||||||||||
zonetype | Type of the zone. The admissible types are Structured and Unstructured. | |||||||||||||||||
index_dim | Index dimension for the zone. For Structured zones, this will be the base cell dimension and for Unstructured zones it will be 1 | |||||||||||||||||
ier | Error status. |
Note that the zones are sorted alphanumerically to insure that they can always be retrieved in the same order (for the same model). Therefore, users must name their zones alphanumerically to ensure proper retrieval.
Functions | Modes |
---|---|
ier = cg_simulation_type_write(int fn, int B, SimulationType_t SimulationType); | - w m |
ier = cg_simulation_type_read(int fn, int B, SimulationType_t SimulationType); | r - m |
call cg_simulation_type_write_f(fn, B, SimulationType, ier) | - w m |
call cg_simulation_type_read_f(fn, B, SimulationType, ier) | r - m |
fn | CGNS file index number. | ||
B | Base index number, where 1 ≤ B ≤ nbases. | ||
SimulationType | Type of simulation. Valid types are CG_Null, CG_UserDefined, TimeAccurate, and NonTimeAccurate. | ||
ier | Error status. |