BISICLES AMR ice sheet model  0.9
Classes | Functions
PythonInterface Namespace Reference

Classes

class  PythonBasalFriction
 BasalFriction that calls a python function to compute $ \beta^2 $. More...
 
class  PythonIBC
 PythonInterface::PythonIBC, a PhysIBC-derived class which allows the bedrock and topography to be set by a user-defined python function f(x,y) . More...
 
class  PythonIceTemperatureIBC
 PhysIBC-derived class that allows the internalEnergy to set a a user-defined python function f(x,y,sigma,thickness,topography,surface) . More...
 
class  PythonMuCoefficient
 
class  PythonSurfaceFlux
 Use a python function to evaluate the surface flux. More...
 
class  PythonVelocitySolver
 

Functions

void InitializePythonModule (PyObject **a_pModule, const std::string &a_pyModuleName)
 
void InitializePythonFunction (PyObject **a_pFunc, PyObject *a_pModule, const std::string &a_pyFuncName)
 
void FillKwargs (std::map< std::string, Real > &a_kwarg, const AmrIceBase &a_amrIce, int a_level, const DataIterator &a_dit, const IntVect &a_iv)
 
void PythonEval (PyObject *a_pyFunc, Vector< Real > &a_value, Vector< Real > &a_arg, std::map< std::string, Real > *a_kwarg=NULL)
 

Function Documentation

◆ FillKwargs()

void PythonInterface::FillKwargs ( std::map< std::string, Real > &  a_kwarg,
const AmrIceBase a_amrIce,
int  a_level,
const DataIterator &  a_dit,
const IntVect &  a_iv 
)

Map names to cell centered data given (a_amrIce,a_level,a_dit,a_iv)

Map names to cell centered data given (a_amrIce,a_level,a_dit,a_iv). Silently sets a_value[i] to 0.0 if a_name[i] is not known

References AmrIceBase::groundingLineProximity(), and AmrIceBase::groundingLineProximityScale().

Referenced by PythonInterface::PythonSurfaceFlux::surfaceThicknessFlux().

◆ InitializePythonFunction()

void PythonInterface::InitializePythonFunction ( PyObject **  a_pFunc,
PyObject *  a_pModule,
const std::string &  a_pyFuncName 
)

◆ InitializePythonModule()

void PythonInterface::InitializePythonModule ( PyObject **  a_pModule,
const std::string &  a_pyModuleName 
)

◆ PythonEval()

void PythonInterface::PythonEval ( PyObject *  a_pyFunc,
Vector< Real > &  a_value,
Vector< Real > &  a_arg,
std::map< std::string, Real > *  a_kwarg = NULL 
)