You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _tutorials/design_features/Species_Transport/Species_Transport.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,6 +242,8 @@ $ SU2_DEF <config-file>.cfg
242
242
243
243
In this special case the deformed produces a bad mesh at the outlet, as the mesh is 'ripped apart' there. This happens because the FFD-Box only deforms what is prescribed in `DV_MARKER` and the remaining boundaries are considered 'clamped' in the volume mesh algorithm. All boundaries? No! The boundaries in `MARKER_SYM` are allowed to move along their symmetry plane in the volume mesher.This obviously requires the boundary to form a single plane which is the case for the present outlet. So, if the outlet is prescribed as a `MARKER_SYM` for the Volume deformation step the mesh deformation will yield a reasonable mesh.
244
244
245
+
After the mesh deformation it is advisable to also run a primal simulation on that deformed mesh, as the simulation settings (e.g. `CFL_NUMBER`) might not lead to a converging simulation anymore. For a later optimization run this testing can help keeping a converging primal through all deformations.
@@ -298,10 +300,16 @@ The unconstrained optimization with the objective function of `SURFACE_SPECIES_V
298
300
$ python optimization.py
299
301
```
300
302
301
-
In order to compute the gradient norms of each iteration a `gradient_norm.py` script was added.
303
+
In order to compute the gradient norms of each Design iteration a `gradient_norm.py` script was added. The script will write a `gradient_norm.csv` into the folder root which.
304
+
305
+
A helpful visualization after an optimization run is having the series of deformed meshes with their primal solution and FFD-Boxes. These solution are in their respective folders and one could tediously load every single one of them.
306
+
The script `create_Visu_symlinks.py` sweeps through the `DSN_*` folders and collects symbolic links of the primal solution and FFD-Boxes into a `visu_files` folder. The symbolic links also renames each file and appends an iteration number to the end of the filename (e.g. `ffd_004.vtk -> ../DSN_004/DEFORM/ffd_boxes_def_0.vtk`). Like so, this data can be loaded in [Paraview](https://www.paraview.org/), or probably any other post-processor, as a time series which allows for easy cycling through the designs.
302
307
303
308

304
309
Figure (4): Objective Function value and Gradient Norm over optimizer iterations. Capped after 12 iterations.
0 commit comments