Access ParameterInput instance from user boundary conditions
kyriakosTapinou opened this issue · 2 comments
In assigning time varying boundary conditions there may be several required parameters that change with each simulation setup. Accessing the ParameterInput instance from the input file would avoid hard coding variable boundary condition parameters.
Access to the input parameters in UserBoundaryFunction would be a useful feature for complex custom boundary conditions.
I haven't found useful links in the documentation but I may have missed something.
For reference the problem problem I am working on is the case by Fan and Gibson, 2003, THE EMERGENCE OF A TWISTED MAGNETIC FLUX TUBE INTO A PREEXISTING CORONAL ARCADE.
You can simply declare global variables (with unnamed namespace if you care) within your problem generator file, and set them at the beginning of a simulation in Mesh::InitUserMeshData where you can use ParameterInput.
@tomidakn Good idea, thank you!