Skip to content
Snippets Groups Projects
Select Git revision
  • fbb349230355da8954f4e5b7c68e226397998011
  • master default protected
  • alphashapes
  • quadMeshingTools
  • cygwin_conv_path
  • macos_arm64
  • add-transfiniteautomatic-to-geo
  • patch_releases_4_10
  • HierarchicalHDiv
  • isuruf-master-patch-63355
  • hyperbolic
  • hexdom
  • hxt_update
  • jf
  • 1618-pythonocc-and-gmsh-api-integration
  • octreeSizeField
  • hexbl
  • alignIrregularVertices
  • getEdges
  • patch_releases_4_8
  • isuruf-master-patch-51992
  • 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
  • gmsh_4_8_4
  • gmsh_4_8_3
  • gmsh_4_8_2
  • gmsh_4_8_1
  • gmsh_4_8_0
  • gmsh_4_7_1
  • gmsh_4_7_0
41 results

BackgroundMesh.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    CGNSOptions.h 1.71 KiB
    // Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@onelab.info>.
    //
    // 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 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;
        writeBC = true;
        writeUserDef = false;
      }
    };
    
    #endif