Families
CGNS Mid-Level Library - Families
Families
- Family Definition
-
cg_family_write
- Create a Family_t node (CGNSBase_t level)
-
cg_nfamilies
- Get number of families (CGNSBase_t level)
-
cg_family_read
- Read family info (CGNSBase_t level)
-
cg_family_name_write
- Write multiple family names under Family_t (CGNSBase_t level)
-
cg_nfamily_names
- Get number of family names under Family_t (CGNSBase_t level)
-
cg_family_name_read
- Read multiple family names under Family_t (CGNSBase_t level)
- Family Hierarchy Tree
-
cg_node_family_write
- Create a Family_t node (Family_t level)
-
cg_node_nfamilies
- Get number of families (Family_t level)
-
cg_node_family_read
- Read family info (Family_t level)
-
cg_node_family_name_write
- Write multiple family names under Family_t (Family_t level)
-
cg_node_nfamily_names
- Get number of family names under Family_t (Family_t level)
-
cg_node_family_name_read
- Read multiple family names under Family_t (Family_t level)
- Geometry Reference
-
cg_geo_write
- Create a GeometryReference_t node
-
cg_geo_read
- Read geometry reference info
-
cg_part_write
- Write geometry entity name
-
cg_part_read
- Get geometry entity name
- Family Boundary Condition
-
cg_fambc_write
- Write boundary condition type for a family
-
cg_fambc_read
- Read boundary condition type for a family
- Family Name
-
cg_famname_write
- Write family name
-
cg_famname_read
- Read family name
-
cg_multifam_write
- Write multiple family names
-
cg_nmultifam
- Get number of family names
-
cg_multifam_read
- Read multiple family names
Family Definition
Node: Family_t
(SIDS,
File Mapping)
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
|
Input/Output
| 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.
|
Family Hierarchy Tree Definition
Node: Family_t
(SIDS,
File Mapping)
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
|
Input/Output
| 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.
Geometry Reference
Node: GeometryReference_t
(SIDS,
File Mapping)
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
|
Input/Output
| 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)
.
Family Boundary Condition
Node: FamilyBC_t
(SIDS,
File Mapping)
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
|
Input/Output
| 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.
|
Family Name
Node: FamilyName_t
(SIDS,
File Mapping)
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
|
Input/Output
| 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.