Astaroth  3.1
Scalable Multi-GPU Stencil Computations
Loading...
Searching...
No Matches
astaroth_forcing.h File Reference
#include "acc_runtime.h"
#include "acreal.h"
#include "func_define.h"
Include dependency graph for astaroth_forcing.h:

Go to the source code of this file.

Data Structures

struct  ForcingParams

Functions

ForcingParams generateHelicalForcingParams (const AcReal relhel, const AcReal magnitude, const AcReal kmin, const AcReal kmax)
int loadForcingParamsToMeshInfo (const ForcingParams forcing_params, AcMeshInfo *info)
void printForcingParams (const ForcingParams forcing_params)

Function Documentation

◆ generateHelicalForcingParams()

ForcingParams generateHelicalForcingParams ( const AcReal relhel,
const AcReal magnitude,
const AcReal kmin,
const AcReal kmax )

Generates PC-inspired forcing params (vaisala_interactionoflarge_2021: https://doi.org/10.3847/1538-4357/abceca) Generates exact PC forcing params based on PC user manual, brandenburg_crosshelically_2019 10.1002/asna.201913602, and used in pekkila_gpuaccelerated_2025

◆ loadForcingParamsToMeshInfo()

int loadForcingParamsToMeshInfo ( const ForcingParams forcing_params,
AcMeshInfo * info )

◆ printForcingParams()

void printForcingParams ( const ForcingParams forcing_params)