Required
m| Type: | UnstructuredMesh |
| Description: | The unstructured mesh object. |
def dgamma(
m: UnstructuredMesh, ij: npt.NDArray, rho: float = 1.0
) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The unstructured mesh object. |
| Type: | npt.NDArray |
| Description: | ij |
| Type: | float |
| Default value: | 1.0 |
| Description: | rho |
npt.NDArraydef dgamma_h(
m: UnstructuredMesh,
h_ek_ref: float | npt.NDArray,
g_exponent: int = 3,
rho: float = 35.0,
) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | float | npt.NDArray |
| Description: | h_ek_ref |
| Type: | int |
| Default value: | 3 |
| Description: | g_exponent |
| Type: | float |
| Default value: | 35.0 |
| Description: | rho |
npt.NDArraydef gamma(
m: UnstructuredMesh,
ij: npt.NDArray,
rho: float = 1.0,
return_gamma_max: bool = False,
return_gamma_array: bool = False,
) -> npt.NDArray | float: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | npt.NDArray |
| Description: | ij |
| Type: | float |
| Default value: | 1.0 |
| Description: | rho |
| Type: | bool |
| Default value: | False |
| Description: | Return the max gamma value. |
| Type: | bool |
| Default value: | False |
| Description: | Return the gamme array. |
npt.NDArray | floatdef gamma_h(
m: UnstructuredMesh,
h_ek_ref: float | npt.NDArray,
g_exponent: int = 3,
rho: float = 35.0,
return_gamma_h_max: bool = False,
) -> float | npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | float | npt.NDArray |
| Description: | h_ek_ref |
| Type: | int |
| Default value: | 3 |
| Description: | g_exponent |
| Type: | float |
| Default value: | 35.0 |
| Description: | rho |
| Type: | bool |
| Default value: | False |
| Description: | Return the max value of gamma_h. |
float | npt.NDArraydef optimize_dt(
m: UnstructuredMesh,
fixed_side_sets: list[list[set[tuple[int, int]]]] | None = None,
maxiter: int = 50,
rho: float = 35.0,
rho_h: float = 35.0,
weight_h: float = 0.0,
h_ek_ref: npt.NDArray | float = 0.0,
g_exponent: int = 3,
scale_mesh: bool = True,
scale_factor: float = 10000.0,
verbose: bool = False,
) -> UnstructuredMesh: ...| Type: | UnstructuredMesh |
| Description: | The mesh to optimize. |
| Type: | list[list[set[tuple[int, int]]]] | None |
| Default value: | None |
| Description: | Element and side ids of the fixed side sets. |
| Type: | int |
| Default value: | 50 |
| Description: | Maximum number of iterations. |
| Type: | float |
| Default value: | 35.0 |
| Description: | rho |
| Type: | float |
| Default value: | 35.0 |
| Description: | rho_h |
| Type: | float |
| Default value: | 0.0 |
| Description: | weight_h |
| Type: | npt.NDArray | float |
| Default value: | 0.0 |
| Description: | h_ek_ref |
| Type: | int |
| Default value: | 3 |
| Description: | g_exponent |
| Type: | bool |
| Default value: | True |
| Description: | Scale the mesh. |
| Type: | float |
| Default value: | 10000.0 |
| Description: | Scaling factor. |
| Type: | bool |
| Default value: | False |
| Description: | Verbosity. |
UnstructuredMeshdef optimize_dt_locally(
m: UnstructuredMesh,
fixed_side_set_names: list[str],
maxiter: int = 50,
rho: float = 35.0,
rho_h: float = 35.0,
weight_h: float = 0.0,
h_ek_ref: npt.NDArray[np.floating] | float = 0.0,
g_exponent: int = 3,
element_count_opt: int = 100,
halo_width: int = 3,
scale_factor: float = 10000.0,
verbose: bool = False,
) -> UnstructuredMesh: ...| Type: | UnstructuredMesh |
| Description: | The mesh to optimize. |
| Type: | list[str] |
| Description: | Names of the fixed side sets. |
| Type: | int |
| Default value: | 50 |
| Description: | Maximum number of iterations. |
| Type: | float |
| Default value: | 35.0 |
| Description: | rho |
| Type: | float |
| Default value: | 35.0 |
| Description: | rho_h |
| Type: | float |
| Default value: | 0.0 |
| Description: | weight_h |
| Type: | npt.NDArray[np.floating] | float |
| Default value: | 0.0 |
| Description: | h_ek_ref |
| Type: | int |
| Default value: | 3 |
| Description: | g_exponent |
| Type: | int |
| Default value: | 100 |
| Description: | Number of elements to optimize. |
| Type: | int |
| Default value: | 3 |
| Description: | Halo width around the problematic elements. |
| Type: | float |
| Default value: | 10000.0 |
| Description: | Scaling factor. |
| Type: | bool |
| Default value: | False |
| Description: | Verbosity. |
UnstructuredMesh