![]() |
NuTo
Numerics Tool
|
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") | |
| def Brick8NCoupling.AddBC | ( | nodeId, | |
| directions | |||
| ) |
| 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 |
| Brick8NCoupling.residual = intGradientJ+cmat.Get("Displacements", "Displacements").TransMult(intGradientKcast)-extGradientJ |
| Brick8NCoupling.structure = nuto.Structure(3) |
| list Brick8NCoupling.terms = [] |
| Brick8NCoupling.visualizationGroup = structure.GroupCreate("Elements") |
1.8.11