Skip to content

Commit 333005c

Browse files
authored
Merge pull request #135 from KratosMultiphysics/mpm/change-application-name
[MPM] Change application name
2 parents 52a60c3 + db4e9bb commit 333005c

25 files changed

Lines changed: 152 additions & 96 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ Unit tests should *not* be uploaded to this repository. Please put them in the `
130130
- [Small Box Lagrangian OW](swimming_dem_fluid_interaction/use_cases/PFEMFluid_Element/One_Way/Small_Box_Eulerian_OW/README.md)
131131
- [Small Box Lagrangian TW](swimming_dem_fluid_interaction/use_cases/PFEMFluid_Element/Two_Way/Small_Box_Eulerian_TW/README.md)
132132

133-
## Particle Mechanics
133+
## MPM (Material Point Method)
134134

135135
**Validation**
136-
- [Granular Flow 2D](particle_mechanics/validation/granular_flow_2D/README.md)
137-
- [Cylinder on inclined plane 2D](particle_mechanics/validation/cylinder_on_inclined_plane/README.md)
136+
- [Granular Flow 2D](mpm/validation/granular_flow_2D/README.md)
137+
- [Cylinder on inclined plane 2D](mpm/validation/cylinder_on_inclined_plane/README.md)
138138

139139
## PFEM2
140140

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Particle Mechanics Examples
1+
# Material Point Method (MPM) Examples
22

3-
This folder contains examples related to the [Particle Mechanics Application](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/ParticleMechanicsApplication) implemented in Kratos-Multiphysics.
3+
This folder contains examples related to the [MPM Application](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/MPMApplication) implemented in Kratos-Multiphysics.
44

55
## Instruction
6-
- Please follow the instruction to download and install the latest version of the application and the GiD interface, [here](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/ParticleMechanicsApplication).
6+
- Please follow the instruction to download and install the latest version of the application and the GiD interface, [here](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/MPMApplication).
77
- At the moment, we only support [GiD](https://www.gidhome.com/) for pre- and post-processing.
8-
- For unit testings of the currently available feature, please visit the [tests](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/ParticleMechanicsApplication/tests) folder in Particle Mechanics Application.
8+
- For unit testings of the currently available feature, please visit the [tests](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/MPMApplication/tests) folder in MPM Application.
99

1010
## Examples
1111

File renamed without changes.
File renamed without changes.

particle_mechanics/validation/cylinder_on_inclined_plane/README.md renamed to mpm/validation/cylinder_on_inclined_plane/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Cylinder on inclined plane 2D - comparison between analytical and numerical solution with MPM
2-
**Author:** Philip Franz
2+
**Author:** Philip Franz
33

4-
**Kratos version:** Development branch. **Expected 9.1**
4+
**Kratos version:** Development branch. **Expected 9.1**
55

6-
**Source files:** [cylinder_on_inclined_plane_2D](https://github.com/KratosMultiphysics/Examples/tree/master/particle_mechanics/validation/cylinder_on_inclined_plane/source)
6+
**Source files:** [cylinder_on_inclined_plane_2D](https://github.com/KratosMultiphysics/Examples/tree/master/mpm/validation/cylinder_on_inclined_plane/source)
77

88

99

1010
## Case Specification
1111

12-
This is a 2D simulation of a cylinder on an inclined plane. A rotating as well as a frictionless sliding behaviour of the cylinder are regarded subsequently. The simulation is set up according to section 4.5.2 of (Iaconeta, 2019).
12+
This is a 2D simulation of a cylinder on an inclined plane. A rotating as well as a frictionless sliding behaviour of the cylinder are regarded subsequently. The simulation is set up according to section 4.5.2 of (Iaconeta, 2019).
1313
Linear, unstructured, triangular elements with a size of 0.01m are used to initialize the MPs. Three MPs per cell are considered. For the backgroundmesh linear, unstructured, triangular elements with a size of 0.02m are used.
14-
However, in contrast to section 4.5.2 of (Iaconeta, 2019), the inclined plane is modelled by a line with unstructured elements with size 0.01m. On that line a non conforming Dirichlet boundary condition is imposed by using the penalty method based on (Chandra et al., 2021).
14+
However, in contrast to section 4.5.2 of (Iaconeta, 2019), the inclined plane is modelled by a line with unstructured elements with size 0.01m. On that line a non conforming Dirichlet boundary condition is imposed by using the penalty method based on (Chandra et al., 2021).
1515

1616
The following applications of Kratos are used:
17-
- [ParticleMechanicsApplication](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/ParticleMechanicsApplication)
17+
- [MPMApplication](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/MPMApplication)
1818
- [LinearSolversApplication](https://github.com/KratosMultiphysics/Kratos/tree/master/applications/LinearSolversApplication)
1919

2020
The problem geometry as well as the boundary conditions are sketched below. The non conforming boundary condition is respresented by the copper coloured line.
@@ -28,7 +28,7 @@ A hyper elastic Neo Hookean Plane strain (2D) constitutive law with unit thickne
2828
* Young's modulus (_E_): 200 MPa
2929
* Poisson ratio (_ν_): 0.3
3030

31-
The time step is 0.001 seconds; the total simulation time is 1.0 seconds. The angle (_α_) of the inclined plane is 60°. The penalty-factor is 1e13.
31+
The time step is 0.001 seconds; the total simulation time is 1.0 seconds. The angle (_α_) of the inclined plane is 60°. The penalty-factor is 1e13.
3232

3333
The contact between cylinder and inclined plane is modelled with the option "contact" (see line 53, file *ProjectParameters_contact.json*) in the first and with "slip" in the second case, based on (Chandra et al., 2021). Choosing "contact" leads to a rolling behaviour of the cylinder; "slip" to frictionless sliding.
3434

@@ -51,7 +51,7 @@ The left image displays the rolling cylinder - modelled with option "contact". T
5151

5252

5353

54-
54+
5555
## References
56-
- Iaconeta, I. (2019). *Discrete-continuum hybrid modelling of flowing and static regimes.* (Ph.D. thesis). Universitat politècnica de Catalunya - Barcelona tech
57-
- Chandra, B., Singer, V., Teschemacher, T., Wüchner, R., Larese, A. (2021) *Nonconforming Dirichlet boundary conditions in implicit material point method by means of penalty augmentation*. Acta Geotech. 16, 2315–2335. https://doi.org/10.1007/s11440-020-01123-3
56+
- Iaconeta, I. (2019). *Discrete-continuum hybrid modelling of flowing and static regimes.* (Ph.D. thesis). Universitat politècnica de Catalunya - Barcelona tech
57+
- Chandra, B., Singer, V., Teschemacher, T., Wüchner, R., Larese, A. (2021) *Nonconforming Dirichlet boundary conditions in implicit material point method by means of penalty augmentation*. Acta Geotech. 16, 2315–2335. https://doi.org/10.1007/s11440-020-01123-3

particle_mechanics/validation/cylinder_on_inclined_plane/data/Cylinder_on_inclined_plane_with_grid_detail.png renamed to mpm/validation/cylinder_on_inclined_plane/data/Cylinder_on_inclined_plane_with_grid_detail.png

File renamed without changes.

particle_mechanics/validation/cylinder_on_inclined_plane/data/comparison_analytical_numerical_disp.png renamed to mpm/validation/cylinder_on_inclined_plane/data/comparison_analytical_numerical_disp.png

File renamed without changes.

particle_mechanics/validation/cylinder_on_inclined_plane/data/rolling cylinder gif.gif renamed to mpm/validation/cylinder_on_inclined_plane/data/rolling cylinder gif.gif

File renamed without changes.

particle_mechanics/validation/cylinder_on_inclined_plane/data/sliding cylinder gif.gif renamed to mpm/validation/cylinder_on_inclined_plane/data/sliding cylinder gif.gif

File renamed without changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import KratosMultiphysics
2+
from KratosMultiphysics.MPMApplication.mpm_analysis import MPMAnalysis
3+
4+
"""
5+
For user-scripting it is intended that a new class is derived
6+
from MPMAnalysis to do modifications
7+
"""
8+
9+
if __name__ == "__main__":
10+
11+
with open("ProjectParameters_contact.json",'r') as parameter_file:
12+
parameters = KratosMultiphysics.Parameters(parameter_file.read())
13+
14+
model = KratosMultiphysics.Model()
15+
simulation = MPMAnalysis(model,parameters)
16+
simulation.Run()

0 commit comments

Comments
 (0)