Functions | Modes |
---|---|
ier = cg_family_write(int fn, int B, char *FamilyName, int *Fam); | - w m |
ier = cg_nfamilies(int fn, int B, int *nfamilies); | r - m |
ier = cg_family_read(int fn, int B, int Fam, char *FamilyName, int *nFamBC, int *nGeo); | r - m |
ier = cg_family_name_write(int fn, int B, int Fam, char *NodeName, char *FamilyName); | - w m |
ier = cg_nfamily_names(int fn, int B, int Fam, int *nNames); | r - m |
ier = cg_family_name_read(int fn, int B, int Fam, int N, char *NodeName, char *FamilyName); | r - m |
call cg_family_write_f(fn, B, FamilyName, Fam, ier) | - w m |
call cg_nfamilies_f(fn, B, nfamilies, ier) | r - m |
call cg_family_read_f(fn, B, Fam, FamilyName, nFamBC, nGeo, ier) | r - m |
call cg_family_name_write_f(fn, B, Fam, NodeName, FamilyName, ier) | - w m |
call cg_nfamily_names_f(fn, B, Fam, nNames, ier) | r - m |
call cg_family_name_read_f(fn, B, Fam, N, NodeName, FamilyName, ier) | r - m |
fn | CGNS file index number. | ||
B | Base index number, where 1 ≤ B ≤ nbases. | ||
nfamilies | Number of families in base B. | ||
Fam | Family index number, where 1 ≤ Fam ≤ nfamilies. | ||
FamilyName | Name of the family. | ||
NodeName | Name of the FamilyName_t node. FamilyParent is used to refer to the parent family of the Family_t node. | ||
nFamBC | Number of boundary conditions for this family. This should be either 0 or 1. | ||
nGeo | Number of geometry references for this family. | ||
nNames | Number of FamilyName_t nodes for this family. | ||
N | Family name index number, where 1 ≤ N ≤ nNames. | ||
ier | Error status. |
Functions | Modes |
---|---|
ier = cg_node_family_write(char *FamilyName, int *Fam); | - w m |
ier = cg_node_nfamilies(int *nfamilies); | r - m |
ier = cg_node_family_read(int Fam, char *FamilyName, int *nFamBC, int *nGeo); | r - m |
ier = cg_node_family_name_write(int Fam, char *NodeName, char *FamilyName); | - w m |
ier = cg_node_nfamily_names(int Fam, int *nNames); | r - m |
ier = cg_node_family_name_read(int Fam, int N, char *NodeName, char *FamilyName); | r - m |
call cg_node_family_write_f(FamilyName, Fam, ier) | - w m |
call cg_node_nfamilies_f(nfamilies, ier) | r - m |
call cg_node_family_read_f(Fam, FamilyName, nFamBC, nGeo, ier) | r - m |
call cg_node_family_name_write_f(Fam, NodeName, FamilyName, ier) | - w m |
call cg_node_nfamily_names_f(Fam, nNames, ier) | r - m |
call cg_node_family_name_read_f(Fam, N, NodeName, FamilyName, ier) | r - m |
nfamilies | Number of families in current node (CGNSBase_t or Family_t). | ||
Fam | Family index number, where 1 ≤ Fam ≤ nfamilies. | ||
FamilyName | Name of the family. | ||
NodeName | Name of the FamilyName_t node. FamilyParent is used to refer to the parent family of the Family_t node. | ||
nFamBC | Number of boundary conditions for this family. This should be either 0 or 1. | ||
nGeo | Number of geometry references for this family. | ||
nNames | Number of FamilyName_t nodes for this family. | ||
N | Family name index number, where 1 ≤ N ≤ nNames. | ||
ier | Error status. |
Note that a current node with CGNSBase_t or FamilyName_t type has to be set with a cg_goto function or equivalent prior any of these function calls.
Functions | Modes |
---|---|
ier = cg_geo_write(int fn, int B, int Fam, char *GeoName, char *FileName, char *CADSystem, int *G); | - w m |
ier = cg_geo_read(int fn, int B, int Fam, int G, char *GeoName, char **FileName, char *CADSystem, int *nparts); | r - m |
ier = cg_part_write(int fn, int B, int Fam, int G, char *PartName, int *P); | - w m |
ier = cg_part_read(int fn, int B, int Fam, int G, int P, char *PartName); | r - m |
call cg_geo_write_f(fn, B, Fam, GeoName, FileName, CADSystem, G, ier) | - w m |
call cg_geo_read_f(fn, B, Fam, G, GeoName, FileName, CADSystem, nparts, ier) | r - m |
call cg_part_write_f(fn, B, Fam, G, PartName, P, ier) | - w m |
call cg_part_read_f(fn, B, Fam, G, P, PartName, ier) | r - m |
fn | CGNS file index number. | ||
B | Base index number, where 1 ≤ B ≤ nbases. | ||
Fam | Family index number, where 1 ≤ Fam ≤ nfamilies. | ||
G | Geometry reference index number, where 1 ≤ G ≤ nGeo. | ||
P | Geometry entity index number, where 1 ≤ P ≤ nparts. | ||
GeoName | Name of GeometryReference_t node. | ||
FileName | Name of geometry file. | ||
CADSystem | Geometry format. | ||
nparts | Number of geometry entities. | ||
PartName | Name of a geometry entity in the file FileName. | ||
ier | Error status. |
Note that with cg_geo_read the memory for the filename character string, FileName, will be allocated by the Mid-Level Library. The application code is responsible for releasing this memory when it is no longer needed by calling cg_free(FileName).
Functions | Modes |
---|---|
ier = cg_fambc_write(int fn, int B, int Fam, char *FamBCName, BCType_t BCType, int *BC); | - w m |
ier = cg_fambc_read(int fn, int B, int Fam, int BC, char *FamBCName, BCType_t *BCType); | r - m |
call cg_fambc_write_f(fn, B, Fam, FamBCName, BCType, BC, ier) | - w m |
call cg_fambc_read_f(fn, B, Fam, BC, FamBCName, BCType, ier) | r - m |
fn | CGNS file index number. | ||
B | Base index number, where 1 ≤ B ≤ nbases. | ||
Fam | Family index number, where 1 ≤ Fam ≤ nfamilies. | ||
BC | Family boundary condition index number. This must be equal to 1. | ||
FamBCName | Name of the FamilyBC_t node. | ||
BCType | Boundary condition type for the family. See the eligible types for BCType_t in the Typedefs section. | ||
ier | Error status. |
Functions | Modes |
---|---|
ier = cg_famname_write(char *FamilyName); | - w m |
ier = cg_famname_read(char *FamilyName); | r - m |
ier = cg_multifam_write(char *NodeName, char *FamilyName); | - w m |
ier = cg_nmultifam(int *nNames); | r - m |
ier = cg_multifam_read(int N, char *NodeName, char *FamilyName); | r - m |
call cg_famname_write_f(FamilyName, ier) | - w m |
call cg_famname_read_f(FamilyName, ier) | r - m |
call cg_multifam_write_f(NodeName, FamilyName, ier) | - w m |
call cg_nmultifam_f(nNames, ier) | r - m |
call cg_multifam_read_f(N, NodeName, FamilyName, ier) | r - m |
NodeName | Node name. | ||
FamilyName | Family name. | ||
nNames | Number of additional family names. | ||
N | Family name index number, where 1 ≤ N ≤ nNames. | ||
ier | Error status. |
Note that the family name written cg_famname_write is stored in a FamilyName_t node named FamilyName as in previous versions. The additional family names written with cg_multifam_write are stored in AdditionalFamilyName_t nodes.