Skip to content
Snippets Groups Projects
Select Git revision
  • 494b4d348eff5be2227ab3beaeb55e84e2133207
  • master default protected
  • fix_alphaShapes
  • hierarchical-basis-refactor
  • hierarchical-basis
  • revert-ef4a3a4f
  • patch_releases_4_14
  • overlaps_tags_and_distributed_export
  • overlaps_tags_and_distributed_export_rebased
  • relaying
  • alphashapes
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

t3.geo

Blame
  • CGNSOptions.h 1.57 KiB
    // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    //
    // CGNSOptions.h - Copyright (C) 2008 S. Guzik, C. Geuzaine, J.-F. Remacle
    
    #ifndef CGNSOPTIONS_H
    #define CGNSOPTIONS_H
    
    #include <string>
    
    class CGNSOptions {
    public:
      enum CGNSLocationType { LocVertex = 0, LocFace = 1 };
    
      std::string baseName;
      std::string zoneName;
      std::string interfaceName;
      std::string patchName;
      int gridConnectivityLocation; // Location of connectivity(values
                                    // CGNSLocationType)
      int bocoLocation; // Location of BC (values
                        // CGNSLocationType)
      int normalSource; // Source for BC normal data
                        // 0 - do not write normals
                        // 1 - geometry
                        // 2 - elements
      int vectorDim; // Number of dimensions in a vector
                     // (only relevant for a 2D mesh)
      bool structuredMesh; // = 1 if structured mesh, = 0 if un-structured mesh
      bool writeBC;
      bool writeUserDef; // T - write user-defined elements for
                         //     element types unsupported by CGNS
    
      CGNSOptions() { setDefaults(); }
      ~CGNSOptions() {}
      void setDefaults()
      {
        baseName = "Base_1";
        zoneName = "Zone_&I%4&";
        interfaceName = "Interface_&I%4&";
        patchName = "Patch_&I%4&";
        gridConnectivityLocation = 0;
        bocoLocation = 0;
        normalSource = 1;
        vectorDim = 2;
        structuredMesh = 0;
        writeBC = true;
        writeUserDef = false;
      }
    };
    
    #endif