ogs5py.fileclasses.msh.generator.radial

ogs5py.fileclasses.msh.generator.radial(dim=3, mesh_origin=(0.0, 0.0, 0.0), angles=16, rad=array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), z_arr=array([0, - 1]))[source]

Generate a radial grid in 2D or 3D.

Parameters
  • dim (int, optional) – Dimension of the resulting mesh, either 2 or 3. Default: 3

  • mesh_origin (list of float, optional) – Origin of the mesh Default: [0.0, 0.0, 0.0]

  • angles (int, optional) – Number of elements in each direction. Default: [10, 10, 10]

  • rad (array, optional) – array of radii to set in the mesh

  • z_arr (array, optional) – array of z values to set the layers in the mesh (only needed for dim=3) needs to be sorted in negative z direction

Returns

result – Result contains one ‘#FEM_MSH’ block of the OGS mesh file with the following information (sorted by keys):

mesh_datadict

dictionary containing information about

  • AXISYMMETRY (bool)

  • CROSS_SECTION (bool)

  • PCS_TYPE (str)

  • GEO_TYPE (str)

  • GEO_NAME (str)

  • LAYER (int)

nodesndarray

Array with all node postions

elementsdict

contains nodelists for elements sorted by element types

material_iddict

contains material ids for each element sorted by element types

element_iddict

contains element ids for each element sorted by element types

Return type

dictionary