stroid v0.1.0
Multi-block curvilinear mesh generation
Loading...
Searching...
No Matches
stroid::config::MeshConfig Struct Reference

Configuration parameters for stroid mesh generation. More...

#include <config.h>

Public Attributes

int refinement_levels = 4
 Number of uniform refinement passes applied after topology creation. @toml [main].refinement_levels.
 
int order = 3
 Polynomial order for high-order elements. @toml [main].order.
 
bool include_external_domain = false
 Whether to include an external domain extending to r_infinity.
 
double r_core = 1.5
 Radius of the stellar core region. @toml [main].r_core.
 
double r_star = 5.0
 Radius of the stellar surface. @toml [main].r_star.
 
double flattening = 0
 Flattening factor for spheroidal shaping (0 = spherical, >0 = oblate). @toml [main].flattening.
 
double r_infinity = 6.0
 Outer radius of the external domain when enabled. @toml [main].r_infinity.
 
double r_instability = 1e-14
 Radius inside which transformations are skipped to avoid singularities. @toml [main].r_instability.
 
double core_steepness = 1.0
 Controls the smoothness/steepness of the core-to-envelope transition. @toml [main].core_steepness.
 

Detailed Description

Configuration parameters for stroid mesh generation.

These values are typically loaded via fourdst::config::Config<stroid::config::MeshConfig> from a TOML file. The README shows the expected TOML layout under the [main] table. Unspecified keys use the defaults defined here.

Member Data Documentation

◆ core_steepness

double stroid::config::MeshConfig::core_steepness = 1.0

Controls the smoothness/steepness of the core-to-envelope transition. @toml [main].core_steepness.

◆ flattening

double stroid::config::MeshConfig::flattening = 0

Flattening factor for spheroidal shaping (0 = spherical, >0 = oblate). @toml [main].flattening.

◆ include_external_domain

bool stroid::config::MeshConfig::include_external_domain = false

Whether to include an external domain extending to r_infinity.

Currently this flag does not affect mesh generation. @toml [main].include_external_domain

◆ order

int stroid::config::MeshConfig::order = 3

Polynomial order for high-order elements. @toml [main].order.

◆ r_core

double stroid::config::MeshConfig::r_core = 1.5

Radius of the stellar core region. @toml [main].r_core.

◆ r_infinity

double stroid::config::MeshConfig::r_infinity = 6.0

Outer radius of the external domain when enabled. @toml [main].r_infinity.

◆ r_instability

double stroid::config::MeshConfig::r_instability = 1e-14

Radius inside which transformations are skipped to avoid singularities. @toml [main].r_instability.

◆ r_star

double stroid::config::MeshConfig::r_star = 5.0

Radius of the stellar surface. @toml [main].r_star.

◆ refinement_levels

int stroid::config::MeshConfig::refinement_levels = 4

Number of uniform refinement passes applied after topology creation. @toml [main].refinement_levels.


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