KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Namespaces | Macros | Functions
add_kernel_to_python.cpp File Reference
#include <sstream>
#include "includes/kernel.h"
#include "includes/define_python.h"
#include "python/add_kernel_to_python.h"
Include dependency graph for add_kernel_to_python.cpp:

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 
 Kratos::Python
 

Macros

#define KRATOS_TO_STRING_(X)   #X
 
#define KRATOS_TO_STRING(X)   KRATOS_TO_STRING_(X)
 
#define KRATOS_PYTHON_VERSION   "Unknown Python Version"
 

Functions

bool Kratos::Python::HasFlag (Kernel &rKernel, const std::string &flag_name)
 
Flags Kratos::Python::GetFlag (Kernel &rKernel, const std::string &flag_name)
 
template<class TVariableType >
bool Kratos::Python::HasVariable (Kernel &rKernel, const std::string &variable_name)
 
template<class TVariableType >
const TVariableType & Kratos::Python::GetVariable (Kernel &rKernel, const std::string &variable_name)
 
bool Kratos::Python::HasConstitutiveLaw (Kernel &rKernel, const std::string &constitutive_law_name)
 
const ConstitutiveLaw & Kratos::Python::GetConstitutiveLaw (Kernel &rKernel, const std::string &constitutive_law_name)
 
template<class TVariableType >
void Kratos::Python::PrintVariablesName (Kernel &rKernel)
 
template<class TVariableType >
std::string Kratos::Python::GetVariableNames (Kernel &rKernel)
 
void Kratos::Python::AddKernelToPython (pybind11::module &m)
 

Macro Definition Documentation

◆ KRATOS_PYTHON_VERSION

#define KRATOS_PYTHON_VERSION   "Unknown Python Version"

◆ KRATOS_TO_STRING

#define KRATOS_TO_STRING (   X)    KRATOS_TO_STRING_(X)

◆ KRATOS_TO_STRING_

#define KRATOS_TO_STRING_ (   X)    #X