Example on a cube (3D)
Let start with a very simple 3d example.
First, we launch the toolbox tabs MmodD (case sensitive) by writing :
Then, we can see the "MmodD" Menu on the right corner of the screen.
Create a simple mesh
Initialize a simple mesh on a unit 3-dimensional cube, and name it 'th3d' :
The result is a mesh 8000 points and 41 154 tetrahedra.
- tcube3d :
It's a 3-dimensional cube with 6 borders (North "N", South "S", East "E", West "W", Up "U" and Down "D").
Create a variable and an equation
Define an empty variable of type p1 on the previous mesh :
Define a new problem associated with your new variable, and name this problem 'mypb' for example :
Then, you can choose an equation :
You can also change the boundary conditions :
See other help topics to see the exact syntax to change the equations.
Assemble and Solve the equation
Assemble the problem, before solving it :
See the result
You can visualize the result by clicking on 'vartool' in the 'MmodD' menu.
If paraview is installed, you can try
- Pallotta Q.