Skip to content

Commit

Permalink
Merge pull request #2417 from KratosMultiphysics/model_v3
Browse files Browse the repository at this point in the history
Model v3 - third iteration of the model redesign
  • Loading branch information
RiccardoRossi authored Oct 18, 2018
2 parents b7f943c + 5085148 commit 0290daa
Show file tree
Hide file tree
Showing 236 changed files with 3,820 additions and 2,516 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "testing/testing.h"
#include "spaces/ublas_space.h"
#include "includes/properties.h"
#include "containers/model.h"
#include "includes/model_part.h"
#include "utilities/math_utils.h"

Expand Down Expand Up @@ -52,13 +53,14 @@ namespace Kratos

KRATOS_TEST_CASE_IN_SUITE(MassMatrixIntegrationTriangle, KratosContactStructuralMechanicsFastSuite)
{
ModelPart ModelPart("Main");
Model this_model;
ModelPart& r_model_part = this_model.CreateModelPart("Main", 2);

// First we create the nodes
NodeType::Pointer p_node_1 = ModelPart.CreateNewNode(0,-0.2,0.1,0.0);
NodeType::Pointer p_node_2 = ModelPart.CreateNewNode(1,1.0,0.1,0.0);
NodeType::Pointer p_node_3 = ModelPart.CreateNewNode(2,0.2,1.2,0.0);
NodeType::Pointer p_node_4 = ModelPart.CreateNewNode(3,0.6,0.4,0.0);
NodeType::Pointer p_node_1 = r_model_part.CreateNewNode(0,-0.2,0.1,0.0);
NodeType::Pointer p_node_2 = r_model_part.CreateNewNode(1,1.0,0.1,0.0);
NodeType::Pointer p_node_3 = r_model_part.CreateNewNode(2,0.2,1.2,0.0);
NodeType::Pointer p_node_4 = r_model_part.CreateNewNode(3,0.6,0.4,0.0);

// Now we create the "conditions"
std::vector<NodeType::Pointer> condition_nodes_0 (3);
Expand Down Expand Up @@ -167,13 +169,14 @@ namespace Kratos

KRATOS_TEST_CASE_IN_SUITE(MassMatrixIntegrationQuadrilateral, KratosContactStructuralMechanicsFastSuite)
{
ModelPart ModelPart("Main");
Model this_model;
ModelPart& r_model_part = this_model.CreateModelPart("Main", 2);

// First we create the nodes
NodeType::Pointer p_node_1 = ModelPart.CreateNewNode(0, 0.0, 0.0, 0.0);
NodeType::Pointer p_node_2 = ModelPart.CreateNewNode(1, 1.0,- 0.1, 0.0);
NodeType::Pointer p_node_3 = ModelPart.CreateNewNode(2, 1.2, 1.1, 0.0);
NodeType::Pointer p_node_4 = ModelPart.CreateNewNode(3, - 0.1, 1.3, 0.0);
NodeType::Pointer p_node_1 = r_model_part.CreateNewNode(0, 0.0, 0.0, 0.0);
NodeType::Pointer p_node_2 = r_model_part.CreateNewNode(1, 1.0,- 0.1, 0.0);
NodeType::Pointer p_node_3 = r_model_part.CreateNewNode(2, 1.2, 1.1, 0.0);
NodeType::Pointer p_node_4 = r_model_part.CreateNewNode(3, - 0.1, 1.3, 0.0);

// Now we create the "conditions"
std::vector<NodeType::Pointer> condition_nodes_0 (4);
Expand Down Expand Up @@ -274,14 +277,15 @@ namespace Kratos

KRATOS_TEST_CASE_IN_SUITE(MassMatrixIntegrationQuadrilateralDeformed, KratosContactStructuralMechanicsFastSuite)
{
ModelPart ModelPart("Main");
Model this_model;
ModelPart& r_model_part = this_model.CreateModelPart("Main", 2);

// First we create the nodes
NodeType::Pointer p_node_0 = ModelPart.CreateNewNode(0, 0.5, 0.4, 0.0);
NodeType::Pointer p_node_1 = ModelPart.CreateNewNode(1, 0.0, 0.0, 0.0);
NodeType::Pointer p_node_2 = ModelPart.CreateNewNode(2, 1.0,- 0.1, 0.0);
NodeType::Pointer p_node_3 = ModelPart.CreateNewNode(3, 1.2, 1.1, 0.0);
NodeType::Pointer p_node_4 = ModelPart.CreateNewNode(4, - 0.1, 1.3, 0.0);
NodeType::Pointer p_node_0 = r_model_part.CreateNewNode(0, 0.5, 0.4, 0.0);
NodeType::Pointer p_node_1 = r_model_part.CreateNewNode(1, 0.0, 0.0, 0.0);
NodeType::Pointer p_node_2 = r_model_part.CreateNewNode(2, 1.0,- 0.1, 0.0);
NodeType::Pointer p_node_3 = r_model_part.CreateNewNode(3, 1.2, 1.1, 0.0);
NodeType::Pointer p_node_4 = r_model_part.CreateNewNode(4, - 0.1, 1.3, 0.0);

// Now we create the "conditions"
std::vector<NodeType::Pointer> condition_nodes_0 (4);
Expand Down Expand Up @@ -495,12 +499,13 @@ namespace Kratos

KRATOS_TEST_CASE_IN_SUITE(TestCheckRotation, KratosContactStructuralMechanicsFastSuite)
{
ModelPart ModelPart("Main");
Model this_model;
ModelPart& r_model_part = this_model.CreateModelPart("Main", 2);

// First we create the nodes
NodeType::Pointer p_node_1 = ModelPart.CreateNewNode(0, 0.0, 0.0, 0.1);
NodeType::Pointer p_node_2 = ModelPart.CreateNewNode(1, 1.0,- 0.1, 0.0);
NodeType::Pointer p_node_3 = ModelPart.CreateNewNode(2, 1.2, 1.1, 0.2);
NodeType::Pointer p_node_1 = r_model_part.CreateNewNode(0, 0.0, 0.0, 0.1);
NodeType::Pointer p_node_2 = r_model_part.CreateNewNode(1, 1.0,- 0.1, 0.0);
NodeType::Pointer p_node_3 = r_model_part.CreateNewNode(2, 1.2, 1.1, 0.2);

// Now we create the "conditions"
std::vector<NodeType::Pointer> condition_nodes_0 (3);
Expand Down
Loading

0 comments on commit 0290daa

Please sign in to comment.