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.
int | order = 3
| Polynomial order for high-order elements.
bool | include_external_domain = true
| Whether to include an external domain extending to `r_infinity`.
double | r_core = 1.5
| Radius of the stellar core region.
double | r_star = 5.0
| Radius of the stellar surface.
double | flattening = 0
| Flattening factor for spheroidal shaping (0 = spherical, >0 = oblate).
double | r_infinity = 6.0
| Outer radius of the external domain when enabled.
double | r_instability = 1e-14
| Radius inside which transformations are skipped to avoid singularities.
double | core_steepness = 1.0
| Controls the smoothness/steepness of the core-to-envelope transition.
size_t | surface_bdr_id = 1
| Boundary attribute id for stellar surface.
size_t | inf_bdr_id = 2
| Boundary attribute id for infinity in kelvin mapping.
size_t | core_id = 1
| Material attribute id for the core region.
size_t | envelope_id = 2
| Material attribute id for the envelope region.
size_t | vacuum_id = 3
| Material attribute id for the external domain (if enabled)

## 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_id

size_t stroid::config::MeshConfig::core_id = 1

Material attribute id for the core region.

# toml

- [main].core_id

## core_steepness

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

Controls the smoothness/steepness of the core-to-envelope transition.

# toml

- [main].core_steepness

## envelope_id

size_t stroid::config::MeshConfig::envelope_id = 2

Material attribute id for the envelope region.

# toml

- [main].envelope_id

## 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 = true

Whether to include an external domain extending to `r_infinity`.

# toml

- [main].include_external_domain

## inf_bdr_id

size_t stroid::config::MeshConfig::inf_bdr_id = 2

Boundary attribute id for infinity in kelvin mapping.

# toml

- [main].inf_bdr_id

## 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

## surface_bdr_id

size_t stroid::config::MeshConfig::surface_bdr_id = 1

Boundary attribute id for stellar surface.

# toml

- [main].surface_bdr_id

## vacuum_id

size_t stroid::config::MeshConfig::vacuum_id = 3

Material attribute id for the external domain (if enabled)

# toml

- [main].vacuum_id

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

- src/include/stroid/config/config.h