NEMoSys  0.63.0
A modular, extensible resource with robust automated mesh generation, mesh quality analysis, adaptive mesh refinement, and data transfer between arbitrary meshes.
cgnsAnalyzer.C File Reference

Go to the source code of this file.

Functions

 CGNS_ENUMT (MassUnits_t)
 
 CGNS_ENUMT (LengthUnits_t)
 
 CGNS_ENUMT (TimeUnits_t)
 
 CGNS_ENUMT (TemperatureUnits_t)
 
 CGNS_ENUMT (AngleUnits_t)
 
 CGNS_ENUMT (ZoneType_t)
 
 CGNS_ENUMT (ElementType_t)
 

Function Documentation

◆ CGNS_ENUMT() [1/7]

◆ CGNS_ENUMT() [2/7]

CGNS_ENUMT ( LengthUnits_t  )

Definition at line 459 of file cgnsAnalyzer.C.

459 { return lengthU; }

◆ CGNS_ENUMT() [3/7]

CGNS_ENUMT ( TimeUnits_t  )

Definition at line 461 of file cgnsAnalyzer.C.

461 { return timeU; }

◆ CGNS_ENUMT() [4/7]

CGNS_ENUMT ( TemperatureUnits_t  )

Definition at line 463 of file cgnsAnalyzer.C.

463  {
464  return tempU;
465 }

◆ CGNS_ENUMT() [5/7]

CGNS_ENUMT ( AngleUnits_t  )

Definition at line 467 of file cgnsAnalyzer.C.

467 { return angleU; }

◆ CGNS_ENUMT() [6/7]

CGNS_ENUMT ( ZoneType_t  )

Definition at line 469 of file cgnsAnalyzer.C.

469 { return zoneType; }

◆ CGNS_ENUMT() [7/7]

CGNS_ENUMT ( ElementType_t  )

Definition at line 574 of file cgnsAnalyzer.C.

References CGNS_ENUMT().

574  {
575  std::vector<std::string> secNames;
576  getSectionNames(secNames);
577  auto it = std::find(secNames.begin(), secNames.end(), secName);
578  if (it == secNames.end()) {
579  std::cerr << "No section found named " << secName << "\n";
580  throw;
581  }
582  int iSec = it - secNames.begin();
583 
584  // reading section info
585  int nBdry, parentFlag;
586  cgsize_t eBeg, eEnd;
587  CGNS_ENUMT(ElementType_t) secTyp;
588  char sectionname[33];
589  if (cg_section_read(indexFile, indexBase, indexZone, iSec, sectionname,
590  &secTyp, &eBeg, &eEnd, &nBdry, &parentFlag) != CG_OK)
591  std::cerr << "Error in load, " << cg_get_error() << std::endl;
592  return secTyp;
593 }
CGNS_ENUMT(MassUnits_t)
Definition: cgnsAnalyzer.C:457