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.
|
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "includes/define_python.h"
#include "includes/mesh.h"
#include "includes/element.h"
#include "includes/condition.h"
#include "includes/properties.h"
#include "python/add_mesh_to_python.h"
#include "python/containers_interface.h"
Namespaces | |
Kratos | |
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES. | |
Kratos::Python | |
Typedefs | |
using | Kratos::Python::MeshType = Mesh< Node, Properties, Element, Condition > |
typedef GeometryType::PointsArrayType | Kratos::Python::NodesArrayType |
Functions | |
template<class TContainerType , class TVariableType > | |
bool | Kratos::Python::HasHelperFunction (TContainerType &el, const TVariableType &rVar) |
template<class TContainerType , class TVariableType > | |
void | Kratos::Python::SetValueHelperFunction (TContainerType &el, const TVariableType &rVar, const typename TVariableType::Type &Data) |
template<class TContainerType , class TVariableType > | |
TVariableType::Type | Kratos::Python::GetValueHelperFunction (TContainerType &el, const TVariableType &rVar) |
Properties::Pointer | Kratos::Python::GetPropertiesFromElement (Element &pelem) |
void | Kratos::Python::SetPropertiesFromElement (Element &pelem, Properties::Pointer pProperties) |
Properties::Pointer | Kratos::Python::GetPropertiesFromCondition (Condition &pcond) |
void | Kratos::Python::SetPropertiesFromCondition (Condition &pcond, Properties::Pointer pProperties) |
template<class T > | |
const GeometryType & | Kratos::Python::GetGeometryFromObject (T &rObject) |
NodeType::Pointer | Kratos::Python::GetNodeFromElement (Element &dummy, unsigned int index) |
py::list | Kratos::Python::GetNodesFromElement (Element &dummy) |
NodeType::Pointer | Kratos::Python::GetNodeFromCondition (Condition &dummy, unsigned int index) |
void | Kratos::Python::ConditionCalculateLocalSystemStandard (Condition &dummy, Matrix &rLeftHandSideMatrix, Vector &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) |
py::list | Kratos::Python::GetNodesFromCondition (Condition &dummy) |
py::list | Kratos::Python::GetIntegrationPointsFromElement (Element &dummy) |
Calculate on Integration Points | |
template<class TObject , class TDataType > | |
pybind11::list | Kratos::Python::CalculateOnIntegrationPoints (TObject &dummy, const Variable< TDataType > &rVariable, const ProcessInfo &rProcessInfo) |
template<class TObject > | |
pybind11::list | Kratos::Python::CalculateOnIntegrationPointsBool (TObject &dummy, const Variable< bool > &rVariable, const ProcessInfo &rProcessInfo) |
Get Values on Integration Points | |
template<class TObject > | |
void | Kratos::Python::GetValuesOnIntegrationPoints (TObject &dummy, const Variable< Vector > &rVariable, const ProcessInfo &rCurrentProcessInfo) |
Set Values on Integration Points | |
template<class TObject , class TDataType > | |
void | Kratos::Python::SetValuesOnIntegrationPoints (TObject &dummy, const Variable< TDataType > &rVariable, const std::vector< TDataType > &values, const ProcessInfo &rCurrentProcessInfo) |
template<class TObject , std::size_t TSize> | |
void | Kratos::Python::SetValuesOnIntegrationPointsArray1d (TObject &dummy, const Variable< array_1d< double, TSize >> &rVariable, pybind11::list values_list, const ProcessInfo &rCurrentProcessInfo) |
template<class TObject > | |
void | Kratos::Python::SetValuesOnIntegrationPointsVector (TObject &dummy, const Variable< Vector > &rVariable, pybind11::list values_list, unsigned int len_values_list_item, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType , class TDataType > | |
TDataType | Kratos::Python::EntityCalculateInterface (TEntityType &dummy, Variable< TDataType > &rVariable, const ProcessInfo &rCurrentProcessInfo) |
void | Kratos::Python::SetValuesOnIntegrationPointsConstitutiveLaw (Element &dummy, const Variable< ConstitutiveLaw::Pointer > &rVariable, pybind11::list values_list, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityCalculateRightHandSide (TEntityType &dummy, Vector &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityCalculateLocalSystem (TEntityType &dummy, Matrix &rLeftHandSideMatrix, Vector &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityCalculateMassMatrix (TEntityType &dummy, Matrix &rMassMatrix, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityCalculateDampingMatrix (TEntityType &dummy, Matrix &rDampingMatrix, const ProcessInfo &rCurrentProcessInfo) |
void | Kratos::Python::ElementCalculateLumpedMassVector (Element &dummy, Vector &rMassVector, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityCalculateFirstDerivativesLHS (TEntityType &dummy, Matrix &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityCalculateSecondDerivativesLHS (TEntityType &dummy, Matrix &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityCalculateLocalVelocityContribution (TEntityType &dummy, Matrix &rDampingMatrix, Vector &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityInitialize (TEntityType &dummy, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType , class TDataType > | |
void | Kratos::Python::EntityCalculateSensitivityMatrix (TEntityType &dummy, const Variable< TDataType > &rDesignVariable, Matrix &rOutput, const ProcessInfo &rCurrentProcessInfo) |
template<class TEntityType > | |
void | Kratos::Python::EntityGetFirstDerivativesVector1 (const TEntityType &dummy, Vector &rOutput) |
template<class TEntityType > | |
void | Kratos::Python::EntityGetFirstDerivativesVector2 (const TEntityType &dummy, Vector &rOutput, int step) |
template<class TEntityType > | |
void | Kratos::Python::EntityGetSecondDerivativesVector1 (const TEntityType &dummy, Vector &rOutput) |
template<class TEntityType > | |
void | Kratos::Python::EntityGetSecondDerivativesVector2 (const TEntityType &dummy, Vector &rOutput, int step) |
void | Kratos::Python::AddMeshToPython (pybind11::module &m) |