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 | Variables
generate_mesh_tying_mortar_condition.py File Reference

Namespaces

 generate_mesh_tying_mortar_condition
 

Variables

bool generate_mesh_tying_mortar_condition.do_simplifications = False
 
string generate_mesh_tying_mortar_condition.mode = "c"
 
bool generate_mesh_tying_mortar_condition.impose_partion_of_unity = False
 
list generate_mesh_tying_mortar_condition.dim_combinations = [2,2,2,2,3,3,3,3,3,3,3,3]
 
list generate_mesh_tying_mortar_condition.nnodeselement_combinations = [2,2,3,3,4,4,3,3,4,4]
 
list generate_mesh_tying_mortar_condition.nnodeselement_master_combinations = [2,2,3,3,4,4,4,4,3,3]
 
list generate_mesh_tying_mortar_condition.tensor_combinations = [1,2,1,2,1,3,1,3,1,3,1,3]
 
string generate_mesh_tying_mortar_condition.lhs_string = ""
 
string generate_mesh_tying_mortar_condition.lhs_template_begin_string = "\n/***********************************************************************************/\n/***********************************************************************************/\n\ntemplate< >\ntemplate< >\nvoid MeshTyingMortarCondition<TDim,TNumNodesElem,TNumNodesElemMaster>::CalculateLocalLHS<MeshTyingMortarCondition<TDim,TNumNodesElem,TNumNodesElemMaster>::TTensor>(\n Matrix& rLocalLHS,\n const MortarConditionMatrices& rMortarConditionMatrices,\n const DofData<TTensor>& rDofData\n )\n{\n // We get the mortar operators\n const BoundedMatrix<double, TNumNodes, TNumNodesMaster>& MOperator = rMortarConditionMatrices.MOperator;\n const BoundedMatrix<double, TNumNodes, TNumNodes>& DOperator = rMortarConditionMatrices.DOperator;\n"
 
string generate_mesh_tying_mortar_condition.lhs_template_end_string = "\n}\n"
 
string generate_mesh_tying_mortar_condition.rhs_string = ""
 
string generate_mesh_tying_mortar_condition.rhs_template_begin_string = "\n/***********************************************************************************/\n/***********************************************************************************/\n\ntemplate<>\ntemplate<>\nvoid MeshTyingMortarCondition<TDim,TNumNodesElem, TNumNodesElemMaster>::CalculateLocalRHS<MeshTyingMortarCondition<TDim,TNumNodesElem,TNumNodesElemMaster>::TTensor>(\n Vector& rLocalRHS,\n const MortarConditionMatrices& rMortarConditionMatrices,\n const DofData<TTensor>& rDofData\n )\n{\n // Initialize values\n const BoundedMatrix<double, TNumNodes, TTensor>& u1 = rDofData.u1;\n const BoundedMatrix<double, TNumNodesMaster, TTensor>& u2 = rDofData.u2;\n\n const BoundedMatrix<double, TNumNodes, TTensor>& lm = rDofData.LagrangeMultipliers; \n\n // Mortar operators\n const BoundedMatrix<double, TNumNodes, TNumNodesMaster>& MOperator = rMortarConditionMatrices.MOperator;\n const BoundedMatrix<double, TNumNodes, TNumNodes>& DOperator = rMortarConditionMatrices.DOperator;\n"
 
string generate_mesh_tying_mortar_condition.rhs_template_end_string = "\n}\n"
 
int generate_mesh_tying_mortar_condition.nnodes = 2
 
int generate_mesh_tying_mortar_condition.nnodes_master = 2
 
 generate_mesh_tying_mortar_condition.number_dof = tensor * (nnodes_master + 2 * nnodes)
 
 generate_mesh_tying_mortar_condition.u1 = custom_sympy_fe_utilities.DefineMatrix('u1',nnodes,tensor)
 
 generate_mesh_tying_mortar_condition.u2 = custom_sympy_fe_utilities.DefineMatrix('u2',nnodes_master,tensor)
 
 generate_mesh_tying_mortar_condition.lm = custom_sympy_fe_utilities.DefineMatrix('lm',nnodes,tensor)
 
 generate_mesh_tying_mortar_condition.w1 = custom_sympy_fe_utilities.DefineMatrix('w1',nnodes,tensor)
 
 generate_mesh_tying_mortar_condition.w2 = custom_sympy_fe_utilities.DefineMatrix('w2',nnodes_master,tensor)
 
 generate_mesh_tying_mortar_condition.wlm = custom_sympy_fe_utilities.DefineMatrix('wlm',nnodes, tensor)
 
 generate_mesh_tying_mortar_condition.DOperator = custom_sympy_fe_utilities.DefineMatrix('DOperator',nnodes,nnodes)
 
 generate_mesh_tying_mortar_condition.MOperator = custom_sympy_fe_utilities.DefineMatrix('MOperator',nnodes,nnodes_master)
 
 generate_mesh_tying_mortar_condition.dofs = sympy.Matrix( sympy.zeros(number_dof, 1) )
 
 generate_mesh_tying_mortar_condition.testfunc = sympy.Matrix( sympy.zeros(number_dof, 1) )
 
int generate_mesh_tying_mortar_condition.count = 0
 
 generate_mesh_tying_mortar_condition.Du1Mu2 = DOperator * u1 - MOperator * u2
 FUNCTIONAL DEFINITION ############################. More...
 
 generate_mesh_tying_mortar_condition.Dw1Mw2 = DOperator * w1 - MOperator * w2
 
int generate_mesh_tying_mortar_condition.rv_galerkin = 0
 
 generate_mesh_tying_mortar_condition.rv = sympy.Matrix( sympy.zeros(1, 1) )
 Complete functional. More...
 
 generate_mesh_tying_mortar_condition.rhs
 
 generate_mesh_tying_mortar_condition.lhs
 
 generate_mesh_tying_mortar_condition.lhs_out = custom_sympy_fe_utilities.OutputMatrix_CollectingFactors(lhs,"lhs", mode, 1, number_dof)
 
 generate_mesh_tying_mortar_condition.rhs_out = custom_sympy_fe_utilities.OutputVector_CollectingFactors(rhs,"rhs", mode, 1, number_dof)
 
 generate_mesh_tying_mortar_condition.input = open("mesh_tying_mortar_condition_template.cpp",'r').read()
 FINAL SAVING ##############################. More...
 
 generate_mesh_tying_mortar_condition.outputstring = input.replace("// replace_lhs", lhs_string)
 
 generate_mesh_tying_mortar_condition.output = open("mesh_tying_mortar_condition.cpp",'w')