Public Member Functions | Private Attributes | List of all members
oomph::GmshParameters Class Reference

Class to collate parameters for Gmsh mesh generation. More...

#include <gmsh_tet_mesh.template.h>

Public Member Functions

 GmshParameters (TetMeshFacetedClosedSurface *const &outer_boundary_pt, const std::string &gmsh_command_line_invocation)
 Specify outer boundary of domain to be meshed. Other parameters get default values and can be set via member functions. More...
 
TetMeshFacetedClosedSurface *& outer_boundary_pt ()
 Outer boundary. More...
 
Vector< TetMeshFacetedSurface * > & internal_surface_pt ()
 Internal boundaries. More...
 
double & element_volume ()
 Uniform target element volume. More...
 
std::string & target_size_file_name ()
 Filename for target volumes (for system-call based transfer to gmsh during mesh adaptation). Default: .gmsh_target_size_for_adaptation.dat. More...
 
std::string & gmsh_command_line_invocation ()
 String to be issued via system command to activate gmsh. More...
 
std::string & geo_and_msh_file_stem ()
 Stem for geo and msh files (input/output to command-line gmsh invocation) More...
 
double & max_element_size ()
 Max. element size during refinement. More...
 
double & min_element_size ()
 Min. element size during refinement. More...
 
double & max_permitted_edge_ratio ()
 Max. permitted edge ratio. More...
 
double & dx_for_target_size_transfer ()
 (Isotropic) grid spacing for target size transfer More...
 
unsigned & max_sample_points_for_limited_locate_zeta_during_target_size_transfer ()
 Target size is transferred onto regular grid (for gmsh) by locate zeta. We try to find the exact point in the existing mesh but if we fail to converge from the nearest specified number of sample points we use the nearest of those. More...
 
std::string & stem_for_filename_gmsh_size_transfer ()
 Stem for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative) More...
 
int & counter_for_filename_gmsh_size_transfer ()
 Counter for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative) More...
 
bool projection_is_disabled ()
 Is projection of old solution onto new mesh disabled? More...
 
void disable_projection ()
 Disable projection of old solution onto new mesh. More...
 
void enable_projection ()
 Disable projection of old solution onto new mesh. More...
 
std::string & gmsh_onscreen_output_file_name ()
 Output filename for gmsh on-screen output. More...
 
unsigned & gmsh_onscreen_output_counter ()
 Counter for marker that indicates where we are in gmsh on-screen output. More...
 

Private Attributes

TetMeshFacetedClosedSurface * Outer_boundary_pt
 Pointer to outer boundary. More...
 
Vector< TetMeshFacetedSurface * > Internal_surface_pt
 Internal boundaries. More...
 
double Element_volume
 Uniform element volume. More...
 
std::string Target_size_file_name
 Filename for target volume (for system-call based transfer to gmsh during mesh adaptation) More...
 
std::string Geo_and_msh_file_stem
 Stem for geo and msh files (input/output to command-line gmsh invocation) More...
 
std::string Gmsh_command_line_invocation
 Gmsh command line invocation string. More...
 
double Max_element_size
 Max. element size during refinement. More...
 
double Min_element_size
 Min. element size during refinement. More...
 
double Max_permitted_edge_ratio
 Max edge ratio before remesh gets triggered. More...
 
double Dx_for_target_size_transfer
 (Isotropic) grid spacing for target size transfer More...
 
unsigned Max_sample_points_for_limited_locate_zeta_during_target_size_transfer
 Target size is transferred onto regular grid (for gmsh) by locate zeta. We try to find the exact point in the existing mesh but if we fail to converge from the nearest specified number of sample points we use the nearest of those. More...
 
std::string Stem_for_filename_gmsh_size_transfer
 Stem for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative) More...
 
int Counter_for_filename_gmsh_size_transfer
 Counter for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative) More...
 
bool Projection_is_disabled
 Is projection of old solution onto new mesh disabled? More...
 
std::string Gmsh_onscreen_output_file_name
 Output filename for gmsh on-screen output. More...
 
unsigned Gmsh_onscreen_output_counter
 Counter for marker that indicates where we are in gmsh on-screen output. More...
 

Detailed Description

Class to collate parameters for Gmsh mesh generation.

Definition at line 56 of file gmsh_tet_mesh.template.h.

Constructor & Destructor Documentation

◆ GmshParameters()

oomph::GmshParameters::GmshParameters ( TetMeshFacetedClosedSurface *const &  outer_boundary_pt,
const std::string &  gmsh_command_line_invocation 
)
inline

Specify outer boundary of domain to be meshed. Other parameters get default values and can be set via member functions.

Definition at line 64 of file gmsh_tet_mesh.template.h.

Member Function Documentation

◆ counter_for_filename_gmsh_size_transfer()

int& oomph::GmshParameters::counter_for_filename_gmsh_size_transfer ( )
inline

Counter for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative)

Definition at line 164 of file gmsh_tet_mesh.template.h.

References Counter_for_filename_gmsh_size_transfer.

◆ disable_projection()

void oomph::GmshParameters::disable_projection ( )
inline

Disable projection of old solution onto new mesh.

Definition at line 176 of file gmsh_tet_mesh.template.h.

References Projection_is_disabled.

◆ dx_for_target_size_transfer()

double& oomph::GmshParameters::dx_for_target_size_transfer ( )
inline

(Isotropic) grid spacing for target size transfer

Definition at line 139 of file gmsh_tet_mesh.template.h.

References Dx_for_target_size_transfer.

◆ element_volume()

double& oomph::GmshParameters::element_volume ( )
inline

Uniform target element volume.

Definition at line 94 of file gmsh_tet_mesh.template.h.

References Element_volume.

Referenced by oomph::GmshTetScaffoldMesh::write_geo_file().

◆ enable_projection()

void oomph::GmshParameters::enable_projection ( )
inline

Disable projection of old solution onto new mesh.

Definition at line 182 of file gmsh_tet_mesh.template.h.

References Projection_is_disabled.

◆ geo_and_msh_file_stem()

std::string& oomph::GmshParameters::geo_and_msh_file_stem ( )
inline

Stem for geo and msh files (input/output to command-line gmsh invocation)

Definition at line 114 of file gmsh_tet_mesh.template.h.

References Geo_and_msh_file_stem.

Referenced by oomph::GmshTetScaffoldMesh::create_mesh_from_msh_file().

◆ gmsh_command_line_invocation()

std::string& oomph::GmshParameters::gmsh_command_line_invocation ( )
inline

String to be issued via system command to activate gmsh.

Definition at line 107 of file gmsh_tet_mesh.template.h.

References Gmsh_command_line_invocation.

◆ gmsh_onscreen_output_counter()

unsigned& oomph::GmshParameters::gmsh_onscreen_output_counter ( )
inline

Counter for marker that indicates where we are in gmsh on-screen output.

Definition at line 195 of file gmsh_tet_mesh.template.h.

References Gmsh_onscreen_output_counter.

Referenced by oomph::GmshTetScaffoldMesh::GmshTetScaffoldMesh().

◆ gmsh_onscreen_output_file_name()

std::string& oomph::GmshParameters::gmsh_onscreen_output_file_name ( )
inline

Output filename for gmsh on-screen output.

Definition at line 188 of file gmsh_tet_mesh.template.h.

References Gmsh_onscreen_output_file_name.

Referenced by oomph::GmshTetScaffoldMesh::GmshTetScaffoldMesh().

◆ internal_surface_pt()

Vector<TetMeshFacetedSurface*>& oomph::GmshParameters::internal_surface_pt ( )
inline

Internal boundaries.

Definition at line 88 of file gmsh_tet_mesh.template.h.

References Internal_surface_pt.

Referenced by oomph::GmshTetMesh< ELEMENT >::build_it(), and oomph::GmshTetScaffoldMesh::write_geo_file().

◆ max_element_size()

double& oomph::GmshParameters::max_element_size ( )
inline

Max. element size during refinement.

Definition at line 121 of file gmsh_tet_mesh.template.h.

References Max_element_size.

◆ max_permitted_edge_ratio()

double& oomph::GmshParameters::max_permitted_edge_ratio ( )
inline

Max. permitted edge ratio.

Definition at line 133 of file gmsh_tet_mesh.template.h.

References Max_permitted_edge_ratio.

◆ max_sample_points_for_limited_locate_zeta_during_target_size_transfer()

unsigned& oomph::GmshParameters::max_sample_points_for_limited_locate_zeta_during_target_size_transfer ( )
inline

Target size is transferred onto regular grid (for gmsh) by locate zeta. We try to find the exact point in the existing mesh but if we fail to converge from the nearest specified number of sample points we use the nearest of those.

Definition at line 148 of file gmsh_tet_mesh.template.h.

References Max_sample_points_for_limited_locate_zeta_during_target_size_transfer.

◆ min_element_size()

double& oomph::GmshParameters::min_element_size ( )
inline

Min. element size during refinement.

Definition at line 127 of file gmsh_tet_mesh.template.h.

References Min_element_size.

◆ outer_boundary_pt()

TetMeshFacetedClosedSurface*& oomph::GmshParameters::outer_boundary_pt ( )
inline

◆ projection_is_disabled()

bool oomph::GmshParameters::projection_is_disabled ( )
inline

Is projection of old solution onto new mesh disabled?

Definition at line 170 of file gmsh_tet_mesh.template.h.

References Projection_is_disabled.

◆ stem_for_filename_gmsh_size_transfer()

std::string& oomph::GmshParameters::stem_for_filename_gmsh_size_transfer ( )
inline

Stem for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative)

Definition at line 156 of file gmsh_tet_mesh.template.h.

References Stem_for_filename_gmsh_size_transfer.

◆ target_size_file_name()

std::string& oomph::GmshParameters::target_size_file_name ( )
inline

Filename for target volumes (for system-call based transfer to gmsh during mesh adaptation). Default: .gmsh_target_size_for_adaptation.dat.

Definition at line 101 of file gmsh_tet_mesh.template.h.

References Target_size_file_name.

Referenced by oomph::GmshTetScaffoldMesh::write_geo_file().

Member Data Documentation

◆ Counter_for_filename_gmsh_size_transfer

int oomph::GmshParameters::Counter_for_filename_gmsh_size_transfer
private

Counter for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative)

Definition at line 248 of file gmsh_tet_mesh.template.h.

Referenced by counter_for_filename_gmsh_size_transfer().

◆ Dx_for_target_size_transfer

double oomph::GmshParameters::Dx_for_target_size_transfer
private

(Isotropic) grid spacing for target size transfer

Definition at line 232 of file gmsh_tet_mesh.template.h.

Referenced by dx_for_target_size_transfer().

◆ Element_volume

double oomph::GmshParameters::Element_volume
private

Uniform element volume.

Definition at line 209 of file gmsh_tet_mesh.template.h.

Referenced by element_volume().

◆ Geo_and_msh_file_stem

std::string oomph::GmshParameters::Geo_and_msh_file_stem
private

Stem for geo and msh files (input/output to command-line gmsh invocation)

Definition at line 217 of file gmsh_tet_mesh.template.h.

Referenced by geo_and_msh_file_stem().

◆ Gmsh_command_line_invocation

std::string oomph::GmshParameters::Gmsh_command_line_invocation
private

Gmsh command line invocation string.

Definition at line 220 of file gmsh_tet_mesh.template.h.

Referenced by gmsh_command_line_invocation().

◆ Gmsh_onscreen_output_counter

unsigned oomph::GmshParameters::Gmsh_onscreen_output_counter
private

Counter for marker that indicates where we are in gmsh on-screen output.

Definition at line 258 of file gmsh_tet_mesh.template.h.

Referenced by gmsh_onscreen_output_counter().

◆ Gmsh_onscreen_output_file_name

std::string oomph::GmshParameters::Gmsh_onscreen_output_file_name
private

Output filename for gmsh on-screen output.

Definition at line 254 of file gmsh_tet_mesh.template.h.

Referenced by gmsh_onscreen_output_file_name().

◆ Internal_surface_pt

Vector<TetMeshFacetedSurface*> oomph::GmshParameters::Internal_surface_pt
private

Internal boundaries.

Definition at line 206 of file gmsh_tet_mesh.template.h.

Referenced by oomph::GmshTetMesh< ELEMENT >::build_it(), and internal_surface_pt().

◆ Max_element_size

double oomph::GmshParameters::Max_element_size
private

Max. element size during refinement.

Definition at line 223 of file gmsh_tet_mesh.template.h.

Referenced by oomph::RefineableGmshTetMesh< ELEMENT >::initialise_adaptation_data(), and max_element_size().

◆ Max_permitted_edge_ratio

double oomph::GmshParameters::Max_permitted_edge_ratio
private

Max edge ratio before remesh gets triggered.

Definition at line 229 of file gmsh_tet_mesh.template.h.

Referenced by oomph::RefineableGmshTetMesh< ELEMENT >::initialise_adaptation_data(), and max_permitted_edge_ratio().

◆ Max_sample_points_for_limited_locate_zeta_during_target_size_transfer

unsigned oomph::GmshParameters::Max_sample_points_for_limited_locate_zeta_during_target_size_transfer
private

Target size is transferred onto regular grid (for gmsh) by locate zeta. We try to find the exact point in the existing mesh but if we fail to converge from the nearest specified number of sample points we use the nearest of those.

Definition at line 238 of file gmsh_tet_mesh.template.h.

Referenced by max_sample_points_for_limited_locate_zeta_during_target_size_transfer().

◆ Min_element_size

double oomph::GmshParameters::Min_element_size
private

Min. element size during refinement.

Definition at line 226 of file gmsh_tet_mesh.template.h.

Referenced by oomph::RefineableGmshTetMesh< ELEMENT >::initialise_adaptation_data(), and min_element_size().

◆ Outer_boundary_pt

TetMeshFacetedClosedSurface* oomph::GmshParameters::Outer_boundary_pt
private

Pointer to outer boundary.

Definition at line 203 of file gmsh_tet_mesh.template.h.

Referenced by oomph::GmshTetMesh< ELEMENT >::build_it(), and outer_boundary_pt().

◆ Projection_is_disabled

bool oomph::GmshParameters::Projection_is_disabled
private

Is projection of old solution onto new mesh disabled?

Definition at line 251 of file gmsh_tet_mesh.template.h.

Referenced by disable_projection(), enable_projection(), and projection_is_disabled().

◆ Stem_for_filename_gmsh_size_transfer

std::string oomph::GmshParameters::Stem_for_filename_gmsh_size_transfer
private

Stem for filename used to doc target element sizes on gmsh grid. No doc if stem is equal to empty string (or counter is negative)

Definition at line 243 of file gmsh_tet_mesh.template.h.

Referenced by stem_for_filename_gmsh_size_transfer().

◆ Target_size_file_name

std::string oomph::GmshParameters::Target_size_file_name
private

Filename for target volume (for system-call based transfer to gmsh during mesh adaptation)

Definition at line 213 of file gmsh_tet_mesh.template.h.

Referenced by target_size_file_name().


The documentation for this class was generated from the following file: