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 | Functions
custom_sympy_fe_utilities.py File Reference

Namespaces

 custom_sympy_fe_utilities
 

Functions

def custom_sympy_fe_utilities.GetSympyVersion ()
 This method returns the current Sympy version. More...
 
def custom_sympy_fe_utilities.DefineMatrix (name, m, n, mode="Function")
 This method defines a symbolic matrix. More...
 
def custom_sympy_fe_utilities.DefineSymmetricMatrix (name, m, n=-1, mode="Symbol")
 This method defines a symbolic symmetric matrix. More...
 
def custom_sympy_fe_utilities.DefineVector (name, m, mode="Symbol")
 This method defines a symbolic vector. More...
 
def custom_sympy_fe_utilities.DefineShapeFunctions (nnodes, dim, impose_partion_of_unity=False)
 This method defines shape functions and derivatives Note that partition of unity is imposed the name HAS TO BE --> N and DN. More...
 
def custom_sympy_fe_utilities.DefineCustomShapeFunctions (nnodes, dim, name)
 This method defines shape functions and derivatives (custom version) More...
 
def custom_sympy_fe_utilities.StrainToVoigt (M)
 This method transform the strains matrix to Voigt notation. More...
 
def custom_sympy_fe_utilities.MatrixB (DN)
 This method defines the deformation matrix B. More...
 
def custom_sympy_fe_utilities.grad_sym_voigtform (DN, x)
 This method defines a symmetric gradient. More...
 
def custom_sympy_fe_utilities.grad (DN, x)
 This method defines a gradient. More...
 
def custom_sympy_fe_utilities.DfjDxi (DN, f)
 This method defines a gradient. More...
 
def custom_sympy_fe_utilities.DfiDxj (DN, f)
 This method defines a gradient This returns a matrix D such that D(i,j) = D(fi)/D(xj) More...
 
def custom_sympy_fe_utilities.div (DN, x)
 This method defines the divergence. More...
 
def custom_sympy_fe_utilities.DefineJacobian (J, DN, x)
 This method defines a Jacobian. More...
 
def custom_sympy_fe_utilities.DefineCalculateNormals (normal, tangent1, tangent2, J)
 This method calculates the normals and tangents. More...
 
def custom_sympy_fe_utilities.CreateVariableMatrixList (variable_list, variable_matrix)
 This method creates a variable list from variable matrix. More...
 
def custom_sympy_fe_utilities.CreateVariableVectorList (variable_list, variable_vector)
 This method creates a variable list from variable vector. More...
 
def custom_sympy_fe_utilities.DefineDofDependencyScalar (scalar, variable_list)
 This method injects a dependency into a scalar from a variable list. More...
 
def custom_sympy_fe_utilities.DefineDofDependencyVector (vector, variable_list)
 This method injects a dependency into a vector from a variable list. More...
 
def custom_sympy_fe_utilities.DefineDofDependencyMatrix (matrix, variable_list)
 This method injects a dependency into a matrix from a variable list. More...
 
def custom_sympy_fe_utilities.SubstituteMatrixValue (where_to_substitute, what_to_substitute, substituted_value)
 This method substitutes values into a matrix. More...
 
def custom_sympy_fe_utilities.SubstituteScalarValue (where_to_substitute, what_to_substitute, substituted_value)
 This method substitutes values into a scalar. More...
 
def custom_sympy_fe_utilities.GetShapeFunctionDefinitionLine2D2N (x, xg)
 This computes the shape functions on 2D line. More...
 
def custom_sympy_fe_utilities.GetShapeFunctionDefinitionLine3D3N (x, xg)
 This computes the shape functions on 3D line. More...
 
def custom_sympy_fe_utilities.Compute_RHS (functional, testfunc, do_simplifications=False)
 This computes the RHS vector. More...
 
def custom_sympy_fe_utilities.Compute_LHS (rhs, testfunc, dofs, do_simplifications=False)
 This computes the LHS matrix. More...
 
def custom_sympy_fe_utilities.Compute_RHS_and_LHS (functional, testfunc, dofs, do_simplifications=False)
 This computes the LHS matrix and the RHS vector. More...
 
def custom_sympy_fe_utilities.OutputVector (rhs, name, mode="python", initial_tabs=1, max_index=30, aux_dict={})
 This method converts into text the RHS vector. More...
 
def custom_sympy_fe_utilities.OutputMatrix (lhs, name, mode, initial_tabs=1, max_index=30, aux_dict={})
 This method converts into text the LHS matrix. More...
 
def custom_sympy_fe_utilities.OutputVectorNonZero (rhs, name, mode="python", initial_tabs=1, max_index=30, aux_dict={})
 This method converts into text the RHS vector (only non-zero terms) More...
 
def custom_sympy_fe_utilities.OutputMatrixNonZero (lhs, name, mode, initial_tabs=1, max_index=30, aux_dict={})
 This method converts into text the LHS matrix (only non-zero terms) More...
 
def custom_sympy_fe_utilities.OutputSymbolicVariable (var, mode="python", varname="", aux_dict={}, initial_tabs=1, max_index=30)
 This method converts into text the LHS matrix (only non-zero terms) More...
 
def custom_sympy_fe_utilities.SubstituteIndex (outstring, mode="python", max_index=30)
 This method substitutes certain indexes. More...
 
def custom_sympy_fe_utilities.DefineVariableLists (variable, name, replacement, dependency, var_strings, var_strings_subs, var_strings_aux_subs, der_var_strings, der_var_list, typology)
 This method define the variables lists. More...
 
def custom_sympy_fe_utilities.Derivatives_CollectingFactors (A, name, mode, initial_tabs=1, max_index=30, optimizations='basic', postprocess=None, order='canonical')
 This method collects the constants of the replacement for derivatives TODO Think about collecting factors also in the derivatives. More...
 
def custom_sympy_fe_utilities.OutputMatrix_CollectingFactors (A, name, mode, initial_tabs=1, max_index=30, optimizations='basic')
 This method collects the constants of the replacement for matrices. More...
 
def custom_sympy_fe_utilities.OutputVector_CollectingFactors (A, name, mode, initial_tabs=1, max_index=30, optimizations='basic')
 This method collects the constants of the replacement for vectors. More...
 
def custom_sympy_fe_utilities.OutputMatrix_CollectingFactorsNonZero (A, name, mode, initial_tabs=1, max_index=30, optimizations='basic')
 This method collects the constants of the replacement for matrices (only non-zero terms) More...
 
def custom_sympy_fe_utilities.OutputVector_CollectingFactorsNonZero (A, name, mode, initial_tabs=1, max_index=30, optimizations='basic')
 This method collects the constants of the replacement for vectors (only non-zero terms) More...