IOSS  2.0
Iogn_GeneratedMesh.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 
7 #ifndef IOSS_Iogn_GeneratedMesh_h
8 #define IOSS_Iogn_GeneratedMesh_h
9 
10 #include <Ioss_CodeTypes.h>
11 #include <Ioss_EntityType.h> // for EntityType
12 #include <array>
13 #include <cstddef> // for size_t
14 #include <cstdint> // for int64_t
15 #include <map> // for map, etc
16 #include <string> // for string
17 #include <utility> // for pair
18 #include <vector> // for vector
19 
20 namespace Iogn {
21  using MapVector = std::vector<int64_t>;
22 
24  {
25  public:
26  enum ShellLocation { MX = 0, PX = 1, MY = 2, PY = 3, MZ = 4, PZ = 5 };
27 
28  /**
29  Generate a cube mesh of size 'num_x' by 'num_y' by 'num_z' elements.
30  By default, the mesh is generated on a single processor. If 'proc_count' is
31  greater than 1, then the mesh will be distributed over 'proc_count' processors
32  and this process will get the portion of the mesh for 'my_proc'.
33  The mesh will be decomposed along the 'Z' axis so 'num_z' must be greater than
34  or equal to 'proc_count' and for even distribution of the hexes 'num_z' mod 'proc_count'
35  should be zero.
36 
37  The mesh can optionally include shell elements along each face of the cube mesh.
38  These are specified via the 'add_shell_block' function.
39 
40  The mesh can optionally include nodesets/sidesets along each
41  face of the cube mesh. These are specified via the
42  'add_nodesets' and 'add_sidesets' functions.
43 
44  If the 'parameters' string constructor is used, the string
45  is parsed to determine the intervals in each direction and,
46  optionally, additional information. The form of the string
47  is "IxJxK" where I, J, and K are the number of intervals
48  in the X, Y, and Z directions respectively and the "x" are
49  literal 'x' characters. For example, the constructor
50  GeneratedMesh("10x12x14") will create the same mesh as
51  GeneratedMesh(10,12,14)
52 
53  Additional valid options are:
54  - help -- no argument, shows valid options
55  - show -- no argument, prints out a summary of the
56  GeneratedMesh() parameters. The output will look similar
57  to:
58  \code
59  "10x12x8|shell:xX|bbox:-10,-10,-10,10,10,10|nodeset:xyz|sideset:XYZ|show"
60 
61  Mesh Parameters:
62  Intervals: 10 by 12 by 8
63  X = 2 * (0..10) + -10 Range: -10 <= X <= 10
64  Y = 1.66667 * (0..12) + -10 Range: -10 <= Y <= 10
65  Z = 2.5 * (0..8) + -10 Range: -10 <= Z <= 10
66  Node Count (total) = 1287
67  Element Count (total) = 1152
68  Block Count = 3
69  NodeSet Count = 3
70  SideSet Count = 3
71  \endcode
72 
73  - tets -- no argument - specifies that each hex should be
74  split into 6 tetrahedral elements. Cannot currently be used with
75  shells or sidesets.
76 
77  - shell -- argument = xXyYzZ which specifies whether there is a shell
78  block at that location. 'x' is minimum x face, 'X' is maximum x face,
79  similarly for y and z. Note that the argument string is a single
80  multicharacter string. You can add multiple shell blocks to a face,
81  for example, shell:xxx would add three layered shell blocks on the
82  minimum x face. An error is output if a non xXyYzZ character is
83  found, but execution continues.
84 
85  - nodeset -- argument = xXyYzZ which specifies whether there is
86  a nodeset at that location. 'x' is minimum x face, 'X' is
87  maximum x face, similarly for y and z. Note that the argument
88  string is a single multicharacter string. You can add multiple
89  nodesets to a face, for example, nodeset:xxx would add three
90  nodesets on the minimum x face. An error is output if a non
91  xXyYzZ character is found, but execution continues.
92 
93  - sideset -- argument = xXyYzZ which specifies whether there is
94  a sideset at that location. 'x' is minimum x face, 'X' is
95  maximum x face, similarly for y and z. Note that the argument
96  string is a single multicharacter string. You can add multiple
97  sidesets to a face, for example, sideset:xxx would add three
98  sidesets on the minimum x face. An error is output if a non
99  xXyYzZ character is found, but execution continues. If there
100  is a shell block specified on that face, then the sideset will
101  be on the shell elements; else the sideset will be on the hex
102  elements.
103 
104  - zdecomp -- argument = n0, n1, n2, ..., n#proc-1 which are the number
105  of intervals in the z direction for each processor in a pallel run.
106  If this option is specified, then the total number of intervals in the
107  z direction is the sum of the n0, n1, ... An interval count must be
108  specified for each processor. If this option is not specified, then
109  the number of intervals on each processor in the z direction is
110  numZ/numProc with the extras added to the lower numbered processors.
111 
112  - scale -- argument = xs, ys, zs which are the scale factors in the x,
113  y, and z directions. All three must be specified if this option is
114  present.
115 
116  - offset -- argument = xoff, yoff, zoff which are the offsets in the
117  x, y, and z directions. All three must be specified if this option
118  is present.
119 
120  - bbox -- argument = xmin, ymin, zmin, xmax, ymax, zmax
121  which specify the lower left and upper right corners of
122  the bounding box for the generated mesh. This will
123  calculate the scale and offset which will fit the mesh in
124  the specified box. All calculations are based on the currently
125  active interval settings. If scale or offset or zdecomp
126  specified later in the option list, you may not get the
127  desired bounding box.
128 
129  - rotate -- argument = axis,angle,axis,angle,...
130  where axis is 'x', 'y', or 'z' and angle is the rotation angle in
131  degrees. Multiple rotations are cumulative. The composite rotation
132  matrix is applied at the time the coordinates are retrieved after
133  scaling and offset are applied.
134 
135  The unrotated coordinate of a node at grid location i,j,k is:
136  \code
137  x = x_scale * i + x_off,
138  y = z_scale * j + y_off,
139  z = z_scale * k + z_off,
140  \endcode
141 
142  The extent of the unrotated mesh will be:
143  \code
144  x_off <= x <= x_scale * numX + x_off
145  y_off <= y <= y_scale * numY + y_off
146  z_off <= z <= z_scale * numZ + z_off
147  \endcode
148 
149  If an unrecognized option is specified, an error message will be
150  output and execution will continue.
151 
152  An example of valid input is:
153  \code
154  "10x20x40|scale:1,0.5,0.25|offset:-5,-5,-5|shell:xX"
155  \endcode
156 
157  This would create a mesh with 10 intervals in x, 20 in y, 40 in z
158  The mesh would be centered on 0,0,0 with a range of 10 in each
159  direction. There would be a shell layer on the min and max
160  x faces.
161 
162  NOTE: All options are processed in the order they appear in
163  the parameters string (except rotate which is applied at the
164  time the coordinates are generated/retrieved)
165  */
166  explicit GeneratedMesh(const std::string &parameters, int proc_count = 1, int my_proc = 0);
167  GeneratedMesh(int64_t num_x, int64_t num_y, int64_t num_z, int proc_count = 1, int my_proc = 0);
168  GeneratedMesh();
169  virtual ~GeneratedMesh();
170 
171  /**
172  * Split each hexahedral element into 6 tetrahedral elements.
173  * Cannot currently be used with sidesets or shells.
174  */
175  void create_tets(bool yesno);
176 
177  /**
178  * Add a shell block along the specified face of the hex mesh.
179  * The shell blocks will maintain the order of definition. The
180  * first shell block defined will be block 2; the hex block has id
181  * 1. The loc options are:
182  * - MX = add shell layer on the face with minimum X
183  * - PX = add shell layer on the face with maximum X
184  * - MY = add shell layer on the face with minimum Y
185  * - PY = add shell layer on the face with maximum Y
186  * - MZ = add shell layer on the face with minimum Z
187  * - PZ = add shell layer on the face with maximum Z
188  *
189  */
190  int64_t add_shell_block(ShellLocation loc);
191 
192  /**
193  * Add a nodeset along the specified face of the hex mesh.
194  * The nodesets will maintain the order of definition. The
195  * first nodeset defined will be nodeset 1.
196  * The loc options are:
197  * - MX = add nodeset on the face with minimum X
198  * - PX = add nodeset on the face with maximum X
199  * - MY = add nodeset on the face with minimum Y
200  * - PY = add nodeset on the face with maximum Y
201  * - MZ = add nodeset on the face with minimum Z
202  * - PZ = add nodeset on the face with maximum Z
203  *
204  */
205  int64_t add_nodeset(ShellLocation loc);
206 
207  /**
208  * Add a sideset along the specified face of the hex mesh.
209  * The sidesets will maintain the order of definition. The
210  * first sideset defined will be sideset 1. If there is a shell
211  * block specified on that face, then the sideset will be on the
212  * shell elements; otherwise the sideset will be on the hex
213  * elements.
214  * The loc options are:
215  * - MX = add sideset on the face with minimum X
216  * - PX = add sideset on the face with maximum X
217  * - MY = add sideset on the face with minimum Y
218  * - PY = add sideset on the face with maximum Y
219  * - MZ = add sideset on the face with minimum Z
220  * - PZ = add sideset on the face with maximum Z
221  *
222  */
223  int64_t add_sideset(ShellLocation loc);
224 
225  /**
226  * Specify the coordinate scaling and offset in all three
227  * spatial dimensions.
228  *
229  * node location of node at (i,j,k) is
230  * \code
231  * X = scale X * i + offset X
232  * Y = scale Y * i + offset Y
233  * Z = scale Z * i + offset Z
234  * \endcode
235  *
236  * WARNING: Should be called before retrieving node
237  * coordinates.
238  */
239  void set_scale(double scl_x, double scl_y, double scl_z);
240  void set_offset(double off_x, double off_y, double off_z);
241  void set_bbox(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax);
242 
243  /**
244  * Set rotation. Multiple calls are cumulative.
245  * Rotate 'angle_degrees' degrees about the axis 'axis'
246  * Center of rotation is about the origin and operates
247  * on the scaled/offset coordinates of the mesh.
248  */
249  void set_rotation(const std::string &axis, double angle_degrees);
250 
251  /**
252  * Return number of nodes in the entire model.
253  */
254  virtual int64_t node_count() const;
255 
256  /**
257  * Return number of nodes on this processor.
258  */
259  virtual int64_t node_count_proc() const;
260 
261  /**
262  * Return number of element blocks in the entire model.
263  */
264  virtual int64_t block_count() const;
265 
266  /**
267  * Return number of nodesets in the entire model.
268  */
269  virtual int64_t nodeset_count() const;
270 
271  /**
272  * Return number of nodeset nodes on nodeset 'id'
273  */
274  int64_t nodeset_node_count(int64_t id) const;
275 
276  /**
277  * Return number of nodeset nodes on nodeset 'id' on the current processor
278  */
279  virtual int64_t nodeset_node_count_proc(int64_t id) const;
280 
281  /**
282  * Return string (quad4 or tri3) giving face topology of sidesets in model
283  */
284  virtual std::string get_sideset_topology() const;
285 
286  /**
287  * Return number of sidesets in the entire model.
288  */
289  virtual int64_t sideset_count() const;
290 
291  /**
292  * Return number of sideset 'sides' on sideset 'id'
293  */
294  int64_t sideset_side_count(int64_t id) const;
295 
296  /**
297  * Return number of sideset 'sides' on sideset 'id' on the current
298  * processor.
299  */
300  virtual int64_t sideset_side_count_proc(int64_t id) const;
301 
302  /**
303  * Return number of elements in all element blocks in the model.
304  */
305  virtual int64_t element_count() const;
306 
307  /**
308  * Return number of shell elements in all element blocks in the model.
309  */
310  int64_t shell_element_count(ShellLocation /*loc*/) const;
311 
312  /**
313  * Return number of elements in all element blocks on this processor.
314  */
315  virtual int64_t element_count_proc() const;
316 
317  /**
318  * Return number of shell elements in all element blocks on this processor.
319  */
320  int64_t shell_element_count_proc(ShellLocation /*loc*/) const;
321 
322  int64_t timestep_count() const { return timestepCount; }
323  /**
324  * Return number of elements in the element block with id
325  * 'block_number'. The 'block_number' ranges from '1' to
326  * 'block_count()'.
327  */
328  virtual int64_t element_count(int64_t block_number) const;
329 
330  /**
331  * Return number of elements on this processor in the element
332  * block with id 'block_number'. The 'block_number' ranges from
333  * '1' to 'block_count()'.
334  */
335  virtual int64_t element_count_proc(int64_t block_number) const;
336 
337  /**
338  * Returns pair containing "topology type string" and "number of
339  * nodes / element". The topology type string will be "hex8" for
340  * the hex element block and "shell4" for the shell element blocks.
341  */
342  virtual std::pair<std::string, int> topology_type(int64_t block_number) const;
343 
344  void build_node_map(Ioss::Int64Vector &map, std::vector<int> &proc, int64_t slab,
345  size_t slabOffset, size_t adjacentProc, size_t index);
346  virtual int64_t communication_node_count_proc() const;
347  virtual void node_communication_map(MapVector &map, std::vector<int> &proc);
348  virtual void owning_processor(int *owner, int64_t num_node);
349 
350  /**
351  * Fill the passed in 'map' argument with the node map
352  * "map[local_position] = global_id" for the nodes on this
353  * processor.
354  */
355  virtual void node_map(MapVector &map) const;
356  virtual void node_map(Ioss::IntVector &map) const;
357 
358  /**
359  * Fill the passed in 'map' argument with the element map
360  * "map[local_position] = global_id" for the elements on this
361  * processor in block "block_number".
362  */
363  virtual void element_map(int64_t block_number, MapVector &map) const;
364  virtual void element_map(int64_t block_number, Ioss::IntVector &map) const;
365 
366  /**
367  * Fill the passed in 'map' argument with the element map
368  * "map[local_position] = global_id" for all elements on this
369  * processor
370  */
371  virtual void element_map(MapVector &map) const;
372  virtual void element_map(Ioss::IntVector &map) const;
373 
374  /**
375  * Fill the passed in 'map' argument with the element map pair
376  * "map[local_position] = element global_id" and
377  * "map[local_position+1] = element local face id (0-based)" for
378  * all elements on the current processor having a face on the
379  * surface defined by ShellLocation.
380  */
381  void element_surface_map(ShellLocation loc, MapVector &map) const;
382 
383  /**
384  * Return the connectivity for the elements on this processor in
385  * the block with id 'block_number'. If the elements in this block
386  * have 'npe' nodes per element, then the first 'npe' entries in
387  * the 'conn' vector will be the nodal connectivity for the first
388  * element; the next 'npe' entries are the nodal connectivity for
389  * the second element. The 'connect' vector will be resized to the
390  * size required to contain the nodal connectivity for the
391  * specified block; all information in 'connect' will be overwritten.
392  */
393  void connectivity(int64_t block_number, Ioss::Int64Vector &connect) const;
394  void connectivity(int64_t block_number, Ioss::IntVector &connect) const;
395  void connectivity(int64_t block_number, int64_t *connect) const;
396  virtual void connectivity(int64_t block_number, int *connect) const;
397 
398  /**
399  * Return the coordinates for all nodes on this processor. The
400  * first 3 entries in the 'coord' vector are the x, y, and z
401  * coordinates of the first node, etc. The 'coord' vector will be
402  * resized to the size required to contain the nodal coordinates;
403  * all information in 'coord' will be overwritten.
404  */
405  virtual void coordinates(std::vector<double> &coord) const;
406  virtual void coordinates(double *coord) const;
407 
408  /**
409  * Return the coordinates for all nodes on this processor in
410  * separate vectors. The vectors will be resized to the size
411  * required to contain the nodal coordinates; all information in
412  * the vectors will be overwritten.
413  */
414  virtual void coordinates(std::vector<double> &x, std::vector<double> &y,
415  std::vector<double> &z) const;
416 
417  /**
418  * Return the coordinates for componenet 'comp' (1=x, 2=y, 3=z)
419  * for all nodes on this processor. The
420  * vector will be resized to the size required to contain the
421  * nodal coordinates; all information in the vector will be
422  * overwritten.
423  * It is an error to request the coordinates via this function
424  * if a rotation is defined.
425  */
426  virtual void coordinates(int component, std::vector<double> &xyz) const;
427  virtual void coordinates(int component, double *xyz) const;
428 
429  /**
430  * Return the list of nodes in nodeset 'id' on this processor.
431  * The 'nodes' vector will be resized to the size required to
432  * contain the node list. The ids are global ids.
433  */
434  virtual void nodeset_nodes(int64_t id, Ioss::Int64Vector &nodes) const;
435 
436  /**
437  * Return the list of the face/ordinal pairs
438  * "elem_sides[local_position] = element global_id" and
439  * "elem_sides[local_position+1] = element local face id (0-based)"
440  * for the faces in sideset 'id' on this
441  * processor. The 'elem_sides' vector will be resized to the size
442  * required to contain the list. The element ids are global ids,
443  * the side ordinal is 0-based.
444  */
445  virtual void sideset_elem_sides(int64_t id, Ioss::Int64Vector &elem_sides) const;
446 
447  virtual std::vector<std::string> sideset_touching_blocks(int64_t set_id) const;
448 
449  int64_t get_num_x() const { return numX; }
450  int64_t get_num_y() const { return numY; }
451  int64_t get_num_z() const { return numZ; }
452 
454  {
455  return variableCount.find(type) != variableCount.end() ? variableCount.find(type)->second : 0;
456  }
457 
458  private:
459  template <typename INT> void raw_element_map(int64_t block_number, std::vector<INT> &map) const;
460  template <typename INT> void raw_element_map(std::vector<INT> &map) const;
461  template <typename INT> void raw_connectivity(int64_t block_number, INT *connect) const;
462 
465 
466  void set_variable_count(const std::string &type, size_t count);
467  void parse_options(const std::vector<std::string> &groups);
468  void show_parameters() const;
469  void initialize();
470 
471  std::vector<ShellLocation> shellBlocks;
472  std::vector<ShellLocation> nodesets;
473  std::vector<ShellLocation> sidesets;
474  std::array<std::array<double, 3>, 3> rotmat;
475  size_t numX, numY, numZ;
476  size_t myNumZ, myStartZ;
477 
479  size_t myProcessor;
480 
482  std::map<Ioss::EntityType, size_t> variableCount;
483 
484  double offX, offY, offZ; /** Offsets in X, Y, and Z directions */
485  double sclX, sclY, sclZ; /** Scale in X, Y, and Z directions
486  * location of node at (i,j,k)
487  * position is (sclX*i+offX,
488  * sclY*i+offY, sclZ*i+offZ) */
491  };
492 } // namespace Iogn
493 #endif
Iogn::GeneratedMesh::ShellLocation
ShellLocation
Definition: Iogn_GeneratedMesh.h:26
Iogn::GeneratedMesh::createTets
bool createTets
Definition: Iogn_GeneratedMesh.h:490
Iogn::GeneratedMesh::sideset_side_count_proc
virtual int64_t sideset_side_count_proc(int64_t id) const
Definition: Iogn_GeneratedMesh.C:565
Iogn::GeneratedMesh::add_sideset
int64_t add_sideset(ShellLocation loc)
Definition: Iogn_GeneratedMesh.C:148
Iogn::GeneratedMesh::variableCount
std::map< Ioss::EntityType, size_t > variableCount
Definition: Iogn_GeneratedMesh.h:482
Iogn::GeneratedMesh::node_count_proc
virtual int64_t node_count_proc() const
Definition: Iogn_GeneratedMesh.C:414
Iogn::GeneratedMesh::sclX
double sclX
Definition: Iogn_GeneratedMesh.h:485
Ioss::IntVector
std::vector< int > IntVector
Definition: Ioss_CodeTypes.h:25
Iogn::GeneratedMesh::build_node_map
void build_node_map(Ioss::Int64Vector &map, std::vector< int > &proc, int64_t slab, size_t slabOffset, size_t adjacentProc, size_t index)
Definition: Iogn_GeneratedMesh.C:649
Iogn::GeneratedMesh::rotmat
std::array< std::array< double, 3 >, 3 > rotmat
Definition: Iogn_GeneratedMesh.h:474
Iogn::GeneratedMesh::coordinates
virtual void coordinates(std::vector< double > &coord) const
Definition: Iogn_GeneratedMesh.C:949
Iogn::GeneratedMesh::set_bbox
void set_bbox(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax)
Definition: Iogn_GeneratedMesh.C:154
Iogn::GeneratedMesh::sideset_elem_sides
virtual void sideset_elem_sides(int64_t id, Ioss::Int64Vector &elem_sides) const
Definition: Iogn_GeneratedMesh.C:1455
Iogn::GeneratedMesh::nodeset_nodes
virtual void nodeset_nodes(int64_t id, Ioss::Int64Vector &nodes) const
Definition: Iogn_GeneratedMesh.C:1392
Iogn::GeneratedMesh::MZ
@ MZ
Definition: Iogn_GeneratedMesh.h:26
Iogn::GeneratedMesh::myNumZ
size_t myNumZ
Definition: Iogn_GeneratedMesh.h:476
Iogn::GeneratedMesh::sideset_count
virtual int64_t sideset_count() const
Definition: Iogn_GeneratedMesh.C:420
Iogn::GeneratedMesh::set_offset
void set_offset(double off_x, double off_y, double off_z)
Definition: Iogn_GeneratedMesh.C:191
Iogn::GeneratedMesh::PY
@ PY
Definition: Iogn_GeneratedMesh.h:26
Iogn::GeneratedMesh::nodeset_node_count_proc
virtual int64_t nodeset_node_count_proc(int64_t id) const
Definition: Iogn_GeneratedMesh.C:520
Iogn::GeneratedMesh::raw_element_map
void raw_element_map(int64_t block_number, std::vector< INT > &map) const
Definition: Iogn_GeneratedMesh.C:693
Iogn::GeneratedMesh::get_num_y
int64_t get_num_y() const
Definition: Iogn_GeneratedMesh.h:450
Iogn::GeneratedMesh::sclY
double sclY
Definition: Iogn_GeneratedMesh.h:485
Iogn::GeneratedMesh::topology_type
virtual std::pair< std::string, int > topology_type(int64_t block_number) const
Definition: Iogn_GeneratedMesh.C:594
Iogn::GeneratedMesh::node_map
virtual void node_map(MapVector &map) const
Definition: Iogn_GeneratedMesh.C:611
Iogn::GeneratedMesh::raw_connectivity
void raw_connectivity(int64_t block_number, INT *connect) const
Definition: Iogn_GeneratedMesh.C:1122
Iogn::GeneratedMesh::create_tets
void create_tets(bool yesno)
Definition: Iogn_GeneratedMesh.C:134
Iogn::GeneratedMesh::timestep_count
int64_t timestep_count() const
Definition: Iogn_GeneratedMesh.h:322
Iogn::GeneratedMesh::set_variable_count
void set_variable_count(const std::string &type, size_t count)
Definition: Iogn_GeneratedMesh.C:1500
INT
int INT
Definition: Ioss_StructuredBlock.h:27
Iogn::GeneratedMesh::PZ
@ PZ
Definition: Iogn_GeneratedMesh.h:26
Iogn::GeneratedMesh::MX
@ MX
Definition: Iogn_GeneratedMesh.h:26
Iogn::GeneratedMesh::nodeset_node_count
int64_t nodeset_node_count(int64_t id) const
Definition: Iogn_GeneratedMesh.C:504
Ioss::EntityType
EntityType
The particular type of GroupingEntity.
Definition: Ioss_EntityType.h:13
Iogn::GeneratedMesh::owning_processor
virtual void owning_processor(int *owner, int64_t num_node)
Definition: Iogn_GeneratedMesh.C:635
Iogn::GeneratedMesh::shell_element_count_proc
int64_t shell_element_count_proc(ShellLocation) const
Definition: Iogn_GeneratedMesh.C:478
Ioss_EntityType.h
Iogn::GeneratedMesh::show_parameters
void show_parameters() const
Definition: Iogn_GeneratedMesh.C:379
Iogn::GeneratedMesh::element_count
virtual int64_t element_count() const
Definition: Iogn_GeneratedMesh.C:422
Iogn::GeneratedMesh::get_sideset_topology
virtual std::string get_sideset_topology() const
Definition: Iogn_GeneratedMesh.C:1453
Iogn::GeneratedMesh::nodeset_count
virtual int64_t nodeset_count() const
Definition: Iogn_GeneratedMesh.C:418
Iogn::GeneratedMesh::numY
size_t numY
Definition: Iogn_GeneratedMesh.h:475
Iogn::GeneratedMesh::GeneratedMesh
GeneratedMesh(const GeneratedMesh &)
Iogn::GeneratedMesh::parse_options
void parse_options(const std::vector< std::string > &groups)
Definition: Iogn_GeneratedMesh.C:198
Iogn::GeneratedMesh::nodesets
std::vector< ShellLocation > nodesets
Definition: Iogn_GeneratedMesh.h:472
Ioss::Int64Vector
std::vector< int64_t > Int64Vector
Definition: Ioss_CodeTypes.h:26
Iogn::GeneratedMesh::numZ
size_t numZ
Definition: Iogn_GeneratedMesh.h:475
Iogn::GeneratedMesh::element_map
virtual void element_map(int64_t block_number, MapVector &map) const
Definition: Iogn_GeneratedMesh.C:682
Iogn::GeneratedMesh::communication_node_count_proc
virtual int64_t communication_node_count_proc() const
Definition: Iogn_GeneratedMesh.C:625
Iogn::GeneratedMesh::add_shell_block
int64_t add_shell_block(ShellLocation loc)
Definition: Iogn_GeneratedMesh.C:136
Iogn::GeneratedMesh::timestepCount
size_t timestepCount
Definition: Iogn_GeneratedMesh.h:481
Iogn::GeneratedMesh::node_count
virtual int64_t node_count() const
Definition: Iogn_GeneratedMesh.C:412
Iogn::GeneratedMesh
Definition: Iogn_GeneratedMesh.h:24
Iogn::GeneratedMesh::get_variable_count
size_t get_variable_count(Ioss::EntityType type) const
Definition: Iogn_GeneratedMesh.h:453
Iogn
A namespace for the generated database format.
Definition: Iogn_DashSurfaceMesh.C:11
Iogn::GeneratedMesh::get_num_x
int64_t get_num_x() const
Definition: Iogn_GeneratedMesh.h:449
Iogn::GeneratedMesh::element_count_proc
virtual int64_t element_count_proc() const
Definition: Iogn_GeneratedMesh.C:431
Iogn::GeneratedMesh::offX
double offX
Definition: Iogn_GeneratedMesh.h:484
Iogn::GeneratedMesh::myProcessor
size_t myProcessor
Definition: Iogn_GeneratedMesh.h:479
Iogn::GeneratedMesh::sidesets
std::vector< ShellLocation > sidesets
Definition: Iogn_GeneratedMesh.h:473
Iogn::GeneratedMesh::myStartZ
size_t myStartZ
Definition: Iogn_GeneratedMesh.h:476
Iogn::GeneratedMesh::block_count
virtual int64_t block_count() const
Definition: Iogn_GeneratedMesh.C:416
Iogn::GeneratedMesh::initialize
void initialize()
Definition: Iogn_GeneratedMesh.C:79
Iogn::GeneratedMesh::PX
@ PX
Definition: Iogn_GeneratedMesh.h:26
Iogn::GeneratedMesh::set_rotation
void set_rotation(const std::string &axis, double angle_degrees)
Definition: Iogn_GeneratedMesh.C:1528
Iogn::MapVector
std::vector< int64_t > MapVector
Definition: Iogn_GeneratedMesh.h:21
Iogn::GeneratedMesh::~GeneratedMesh
virtual ~GeneratedMesh()
Iogn::GeneratedMesh::get_num_z
int64_t get_num_z() const
Definition: Iogn_GeneratedMesh.h:451
Iogn::GeneratedMesh::set_scale
void set_scale(double scl_x, double scl_y, double scl_z)
Definition: Iogn_GeneratedMesh.C:184
Iogn::GeneratedMesh::processorCount
size_t processorCount
Definition: Iogn_GeneratedMesh.h:478
Iogn::GeneratedMesh::shellBlocks
std::vector< ShellLocation > shellBlocks
Definition: Iogn_GeneratedMesh.h:471
Iogn::GeneratedMesh::element_surface_map
void element_surface_map(ShellLocation loc, MapVector &map) const
Definition: Iogn_GeneratedMesh.C:784
Iogn::GeneratedMesh::sclZ
double sclZ
Definition: Iogn_GeneratedMesh.h:485
Iogn::GeneratedMesh::numX
size_t numX
Definition: Iogn_GeneratedMesh.h:475
Iogn::GeneratedMesh::operator=
GeneratedMesh & operator=(const GeneratedMesh &)
Iogn::GeneratedMesh::connectivity
void connectivity(int64_t block_number, Ioss::Int64Vector &connect) const
Definition: Iogn_GeneratedMesh.C:1085
Iogn::GeneratedMesh::sideset_touching_blocks
virtual std::vector< std::string > sideset_touching_blocks(int64_t set_id) const
Definition: Iogn_GeneratedMesh.C:1494
Iogn::GeneratedMesh::MY
@ MY
Definition: Iogn_GeneratedMesh.h:26
Iogn::GeneratedMesh::shell_element_count
int64_t shell_element_count(ShellLocation) const
Definition: Iogn_GeneratedMesh.C:452
Iogn::GeneratedMesh::offZ
double offZ
Definition: Iogn_GeneratedMesh.h:484
Iogn::GeneratedMesh::add_nodeset
int64_t add_nodeset(ShellLocation loc)
Definition: Iogn_GeneratedMesh.C:142
Ioss_CodeTypes.h
Iogn::GeneratedMesh::node_communication_map
virtual void node_communication_map(MapVector &map, std::vector< int > &proc)
Definition: Iogn_GeneratedMesh.C:659
Ioex::set_id
bool set_id(const Ioss::GroupingEntity *entity, ex_entity_type type, Ioex::EntityIdSet *idset)
Definition: Ioex_Utils.C:292
Iogn::GeneratedMesh::offY
double offY
Definition: Iogn_GeneratedMesh.h:484
Iogn::GeneratedMesh::doRotation
bool doRotation
Definition: Iogn_GeneratedMesh.h:489
Iogn::GeneratedMesh::sideset_side_count
int64_t sideset_side_count(int64_t id) const
Definition: Iogn_GeneratedMesh.C:548
Iogn::GeneratedMesh::GeneratedMesh
GeneratedMesh()
Definition: Iogn_GeneratedMesh.C:69