Skip to content

Commit 4954a01

Browse files
committed
Added new steps to CFD tutorial
1 parent 53cc754 commit 4954a01

4 files changed

Lines changed: 43 additions & 7 deletions

File tree

194 KB
Loading
14.5 KB
Loading
112 KB
Loading

‎src/fea/help/tutorials/en/tutorial_Contaminant_dispersion_in_fluids.md‎

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,43 @@ It will take some time until the solver computes all iterations and finds a conv
6262

6363
**Menu:** _Report -> Solver convergence_
6464

65-
## 7. Problem task flow (Step 2)
65+
## 7. Create a cut
66+
67+
A good way to inspect a flow is to display the velocity as a **vector field**, where every arrow shows the direction and magnitude of the flow at one point. A vector field drawn through the whole volume, however, quickly becomes a dense cloud of overlapping arrows that is hard to read. It is usually clearer to first slice the model with a **cut** - a plane through the volume - and then display the vector field only on that plane.
68+
69+
**Menu:** _Geometry -> Cut -> Create cut_
70+
71+
In the **Cut editor** dialog:
72+
73+
1. Select **Volume 1** in the **Model** tree. The cut will be created through this volume.
74+
2. Use **Plane position** to set a point the cut plane passes through. The default values place it in the center of the model (**X** = 7.5, **Y** = 2.5, **Z** = 1.5 `[m]`).
75+
3. Use **Plane normal** to set the orientation of the plane. The normal (**X** = 0, **Y** = 0, **Z** = 1) gives a horizontal plane cutting through the mid-height of the channel.
76+
77+
The cut plane is previewed in the **3D model area** while the values are being changed. Click **OK** to create the cut. A new entity **Cut 1** appears in the **Model tree** under **Cuts**.
78+
79+
![CFD - Create cut entity](image-CFD-Create_cut.png)
80+
81+
## 8. Create a vector field
82+
83+
Now display the computed velocity as arrows on the cut plane.
84+
85+
**Menu:** _Geometry -> Vector field -> Create vector field_
86+
87+
In the **Vector field editor** dialog:
88+
89+
1. Select **Cut 1** in the **Model** tree. The arrows will be drawn on the cut plane created in the previous step.
90+
2. Select **Velocity** in the **Variables** list.
91+
3. Leave **3D vector field** checked. The arrows then show the full velocity vector. When unchecked, each arrow is projected onto the cut plane and only the in-plane part of the flow is shown.
92+
93+
Click **OK** to create the vector field.
94+
95+
![CFD - Create vector field entity](image-CFD-Create_vector.png)
96+
97+
The arrows may be too short to be clearly visible, because their length is proportional to the flow velocity. To make them longer, open the **Results** tab, select the **Velocity - Vector** variable and increase the value in the **Scale** section. The scale is the product of the **Scale** value and the power of ten set in **Factor**; in the example below **Scale** 1 and **Factor** 2 give a scale of `1 × 10^2 = 100`.
98+
99+
![CFD - Scale vector field entity](image-CFD-Scale_vector.png)
100+
101+
## 9. Problem task flow (Step 2)
66102

67103
Once the solver converges, a **transient** problem including **Contaminant dispersion** can be configured.
68104

@@ -76,13 +112,13 @@ Since **Incompressible viscous flow** is a nonlinear problem, it will always nee
76112

77113
![CFD - Problem task flow](image-CFD-Problem_task_flow.png)
78114

79-
## 8. Time solver setup
115+
## 10. Time solver setup
80116

81-
Click on **Problem** tab. Enable **Time-solver** and specify values as shown on the screenshot below (**Time-step size** 0.001, **Number of time-steps** 20000, **Output frequency** 10; **End time** is computed automatically).
117+
Click on **Problem** tab. Enable **Time-solver** and specify values as shown on the screenshot below (**Time-step size** 0.01, **Number of time-steps** 2000, **Output frequency** 10; **End time** is computed automatically).
82118

83119
![CFD - Problem time solver](image-CFD-Problem_time_solver.png)
84120

85-
## 9. Boundary conditions
121+
## 11. Boundary conditions
86122

87123
Apply **Particle concentration** boundary condition to **Inflow** model entity.
88124

@@ -94,17 +130,17 @@ In the **Component editor** dialog, time-dependent values can be specified. Valu
94130

95131
![CFD - Particle concentration condition](image-CFD-Particle_concentration_condition.png)
96132

97-
## 10. Solve problem (restart)
133+
## 12. Solve problem (restart)
98134

99135
Once the problem is fully configured, restart the solver. This is done just like when starting a solver, but the **Restart solver / continue** check-box must be selected. A warning **Contaminant dispersion: No implicit boundary condition assigned.** is expected and can be ignored. This will cause the solver to use already computed results as a starting point and continue in the time-marching simulation.
100136

101137
![CFD - Solver restart](image-CFD-Solver_restart.png)
102138

103-
## 11. Model records (results in time)
139+
## 13. Model records (results in time)
104140

105141
As the solver keeps finding solutions for each time-step, model records are being written. Each record contains a solution for a given time-step. A list of these records can be seen in the **Records** tree. By double-clicking on a record, results for the given time-step will be loaded.
106142

107-
## 12. Record video
143+
## 14. Record video
108144

109145
Computing all 20000 time-steps takes a long time. The solver can be stopped at any time (**Menu:** _Solution -> Stop solver_, confirm with **Yes**); already written records are kept.
110146

0 commit comments

Comments
 (0)