NuTo
Numerics Tool
Functions | Variables
Brick8NCoupling Namespace Reference

Functions

def AddBC (nodeId, directions)
 

Variables

 structure = nuto.Structure(3)
 
 Material1 = structure.ConstitutiveLawCreate("Linear_Elastic_Engineering_Stress")
 
 interpolationType = structure.InterpolationTypeCreate("Brick3D")
 
list nodeContributions
 
list terms = []
 
 node = structure.NodeGetNodePtr(nodeId)
 
 equation = nuto.Equation(terms)
 
 direction = np.array([1.0, 0.0, 0.0])
 
 intGradient = structure.BuildGlobalInternalGradient()
 
 extGradient = structure.BuildGlobalExternalLoadVector()
 
 extGradientJ = extGradient.J.Get("Displacements")
 
 intGradientJ = intGradient.J.Get("Displacements")
 
 intGradientK = intGradient.K.Get("Displacements")
 
 intGradientKcast = -intGradientK
 
 cmat = structure.GetAssembler().GetConstraintMatrix()
 
 residual = intGradientJ+cmat.Get("Displacements", "Displacements").TransMult(intGradientKcast)-extGradientJ
 
 visualizationGroup = structure.GroupCreate("Elements")
 

Function Documentation

def Brick8NCoupling.AddBC (   nodeId,
  directions 
)

Variable Documentation

Brick8NCoupling.cmat = structure.GetAssembler().GetConstraintMatrix()
Brick8NCoupling.direction = np.array([1.0, 0.0, 0.0])
Brick8NCoupling.equation = nuto.Equation(terms)
Brick8NCoupling.extGradient = structure.BuildGlobalExternalLoadVector()
Brick8NCoupling.extGradientJ = extGradient.J.Get("Displacements")
Brick8NCoupling.interpolationType = structure.InterpolationTypeCreate("Brick3D")
Brick8NCoupling.intGradient = structure.BuildGlobalInternalGradient()
Brick8NCoupling.intGradientJ = intGradient.J.Get("Displacements")
Brick8NCoupling.intGradientK = intGradient.K.Get("Displacements")
Brick8NCoupling.intGradientKcast = -intGradientK
Brick8NCoupling.Material1 = structure.ConstitutiveLawCreate("Linear_Elastic_Engineering_Stress")
Brick8NCoupling.node = structure.NodeGetNodePtr(nodeId)
list Brick8NCoupling.nodeContributions
Initial value:
1 = [
2  (nuto.eDirection_X, {6: -1.0, 3: 0.5, 9: 0.5}),
3  (nuto.eDirection_Y, {6: -1.0, 3: 0.5, 9: 0.5}),
4  (nuto.eDirection_Z, {6: -1.0, 3: 0.5, 9: 0.5}),
5  (nuto.eDirection_X, {12: -1.0, 3: 0.5, 21: 0.5}),
6  (nuto.eDirection_Y, {12: -1.0, 3: 0.5, 21: 0.5}),
7  (nuto.eDirection_Z, {12: -1.0, 3: 0.5, 21: 0.5}),
8  (nuto.eDirection_X, {18: -1.0, 9: 0.5, 27: 0.5}),
9  (nuto.eDirection_Y, {18: -1.0, 9: 0.5, 27: 0.5}),
10  (nuto.eDirection_Z, {18: -1.0, 9: 0.5, 27: 0.5}),
11  (nuto.eDirection_X, {24: -1.0, 21: 0.5, 27: 0.5}),
12  (nuto.eDirection_Y, {24: -1.0, 21: 0.5, 27: 0.5}),
13  (nuto.eDirection_Z, {24: -1.0, 21: 0.5, 27: 0.5}),
14  (nuto.eDirection_X, {15: -1.0, 3: 0.25, 9: 0.25, 21: 0.25, 27: 0.25}),
15  (nuto.eDirection_Y, {15: -1.0, 3: 0.25, 9: 0.25, 21: 0.25, 27: 0.25}),
16  (nuto.eDirection_Z, {15: -1.0, 3: 0.25, 9: 0.25, 21: 0.25, 27: 0.25}),
17  ]
Brick8NCoupling.residual = intGradientJ+cmat.Get("Displacements", "Displacements").TransMult(intGradientKcast)-extGradientJ
Brick8NCoupling.structure = nuto.Structure(3)
list Brick8NCoupling.terms = []
Brick8NCoupling.visualizationGroup = structure.GroupCreate("Elements")