Kratos Structure: Mesh and ModelPart
Line 23: | Line 23: | ||
Next : [[Kratos Structure: Strategies and Processes]] | Next : [[Kratos Structure: Strategies and Processes]] | ||
− | Previous : [[Kratos Structure: | + | Previous : [[Kratos Structure: Elements and Conditions]] |
Revision as of 18:32, 5 May 2012
Continuing with this description of the basic components of Kratos, we turn our attention to the Mesh and the ModelPart, which are the containers of all information and data related to a given model.
The Mesh
The Mesh class is the container that stores the geometrical definition of the problem or a region of the simulation domain. At its core, it contains three lists, for the nodes, elements and conditions that constitute the model. The elements on each list are ordered by their Id, ordered consecutively starting from one.
The Model Part
The ModelPart is arguably the most important class in Kratos. It contains all the information required for the simulation of a given problem, namely Nodes, Elements and Conditions.
- One or more Mesh instances, containing the nodes, elements and conditions that compose the problem domain.
- A list of the Properties used to define the material properties of elements and conditions of the model.
- The ProcessInfo, a container of global data for the entire model, such as the time step the simulation is at, and any global parameters required by the algorithms used to solve the problem.
- Any additional global data required, such as Tables.
In addition to this, the ModelPart is also responsible for keeping track of the advancement in time of the simulation, managing the initialization of new time steps
model_part.CloneSolutionStep(time)
and the amount of old step data that is stored in the nodes' historical database.
model_part.SetBufferSize(Nsteps)
Next : Kratos Structure: Strategies and Processes
Previous : Kratos Structure: Elements and Conditions