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

Namespaces

 sensitivityMatrix
 

Variables

bool sensitivityMatrix.do_simplifications = False
 Symbolic generation settings. More...
 
string sensitivityMatrix.mode = "c"
 
int sensitivityMatrix.nnodes = 3
 
int sensitivityMatrix.dim = 2
 
bool sensitivityMatrix.impose_partion_of_unity = False
 
 sensitivityMatrix.N
 
 sensitivityMatrix.DNDe
 
 sensitivityMatrix.x = DefineMatrix('x', nnodes, dim)
 
 sensitivityMatrix.p = DefineVector('p', nnodes)
 
 sensitivityMatrix.J = sympy.simplify(x.transpose()*DNDe)
 
 sensitivityMatrix.JInverse = sympy.simplify((J)**(-1))
 
 sensitivityMatrix.DNDx = sympy.simplify(DNDe*JInverse)
 
 sensitivityMatrix.det_J = sympy.simplify(0.5*J.det())
 
 sensitivityMatrix.A = sympy.simplify(DNDx*DNDx.transpose())
 
 sensitivityMatrix.K = sympy.simplify(A*det_J)
 
 sensitivityMatrix.B = sympy.simplify(-K * p)
 
 sensitivityMatrix.DB_Dx = DefineMatrix('DB_Dx',dim*nnodes,nnodes)
 
 sensitivityMatrix.dB_Dx_out = OutputMatrix_CollectingFactors(DB_Dx, "rOutput", mode)