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