Difference between revisions of "Tutorial Video Overviews"

From PHASTA Wiki
Jump to: navigation, search
(Add notes and timestamps for the Matlab Structured Meshing tutorial)
Line 10: Line 10:
 
! Software Used
 
! Software Used
 
! Description
 
! Description
 +
! More Notes
 
! Misc. Tags
 
! Misc. Tags
 
|-
 
|-
Line 18: Line 19:
 
* Overview of using portal1/viznodes, how/when to use vglconnect etc (first ~10 minutes)
 
* Overview of using portal1/viznodes, how/when to use vglconnect etc (first ~10 minutes)
 
* Use of SimModeler for creating unstructured mesh of a windtunnel
 
* Use of SimModeler for creating unstructured mesh of a windtunnel
 +
| N/A
 
| viznode, meshing
 
| viznode, meshing
 
|-
 
|-
Line 26: Line 28:
 
* Using Riccardo's Matlab script (StructMesh_Channel.m) to create structured mesh for LES_DNS simulation
 
* Using Riccardo's Matlab script (StructMesh_Channel.m) to create structured mesh for LES_DNS simulation
 
* Converting that mesh for use with Chef using runMatchedNodeElmReader.sh
 
* Converting that mesh for use with Chef using runMatchedNodeElmReader.sh
 +
| [[#MatLabMeshAndConvert.mov|Jump to Notes Below]]
 
| Channel, Bump, meshing
 
| Channel, Bump, meshing
 
|-
 
|-
Line 34: Line 37:
 
* Viewing required settings for PHASTA to create spanwise averaged statistic files
 
* Viewing required settings for PHASTA to create spanwise averaged statistic files
 
* Using Riccardo's Matlab script to take those files and plot them
 
* Using Riccardo's Matlab script to take those files and plot them
 +
| N/A
 
| post-processing  
 
| post-processing  
 
|}
 
|}
 +
 +
 +
== Video Notes ==
 +
 +
=== MatLabMeshAndConvert.mov ===
 +
 +
==== Time Stamps ====
 +
{| class="wikitable"
 +
! Time
 +
! Notes
 +
|-
 +
| 0:00
 +
| Begin reviewing code of the Matlab scripts
 +
|-
 +
| 10:30
 +
| Run Example Script
 +
|-
 +
| 12:45
 +
| Observing the files generated by Matlab
 +
|-
 +
| 13:40
 +
| Discussion of using <code>matchedNodeElmReader</code>
 +
|-
 +
| 14:50
 +
| Running of <code>runMatchedNodeElmReader.sh</code> script
 +
|-
 +
| 16:10
 +
| Viewing mesh in Paraview
 +
|}
 +
 +
==== Notes ====
 +
Create structured meshes using Matlab script created by Riccardo and other tools.
 +
Matlab script defines the "values" of the mesh to be generated, while <code>matchedNodeElmReader</code> actually generates the mesh files themselves.
 +
 +
Note that <code>matchedNodeElmReader</code> may also be referred to/named as <code>streamMds</code>.
 +
 +
Result of Matlab script is 5 different files:
 +
{| class="wikitable"
 +
| <code>*.crd</code>
 +
| Coordinates of each vertex
 +
|-
 +
| <code>*.class</code>
 +
| Classification with respect to the geometrical model (a box in this case)
 +
|-
 +
| <code>*.cnn</code>
 +
| Connectivity of each element
 +
|-
 +
| <code>*.fathers2D</code>
 +
| 2D grid of the fathers, Used in spanwise averaging
 +
|-
 +
| <code>*.match</code>
 +
| "vertex matching flag" for periodic boundary conditions
 +
|}
 +
 +
<code>matchedNodeElmReader</code> then takes these files as input and generates two directories: <code>outMesh</code> and <code>rendered</code>.
 +
The <code>rendered</code> is a way to view the mesh in Paraview.
 +
 +
The code is run with:
 +
mpirun -np 1 matchedNodeElmReader *.cnn *.crd *.match *.class *.fathers2D output_model.dmg outputMeshDir/
 +
 +
where in the tutorial <code>matchedNodeElmReader</code> is located at <code>/users/rbalin/matchedReader/build-addNfathDebug/test/matchedNodeElnReader</code>.
 +
The mesh files (SCOREC Mesh, <code>*.smb</code>) are then placed inside the output mesh directory.
 +
A usage message can be shown by running the executable without any arguments.
 +
 +
This command can also be run with multiple MPI processes. Note that this process does "preliminary" partitioning, so the number of mpi processes used is the number of <code>*.smd</code>. The nodes are stored in z, y, x major order (which is generally spanwise, wall-normal, streamwise order), so Riccardo recommends that the number of mpi processes be evenly divisible by the number of streamwise nodes such that these partitions are not divided unevenly.
 +
 +
Once this is done, the <code>*.smb</code> and <code>*.dmg</code> files are fed to Chef for further partitioning and processing.
  
 
== Meta ==
 
== Meta ==

Revision as of 09:52, 27 May 2020

Here are notes going over the contents of the different tutorial videos with the goal of helping others find tutorial videos of use to them.

See Meta for details on adding new entries.


Video Table

Video Name Date Software Used Description More Notes Misc. Tags
Raj_demo.mov 2019-05-12 SimModeler, vglconnect
  • Overview of using portal1/viznodes, how/when to use vglconnect etc (first ~10 minutes)
  • Use of SimModeler for creating unstructured mesh of a windtunnel
N/A viznode, meshing
MatLabMeshAndConvert.mov 2019-09-09 Matlab, StructMesh_Channel.m, runMatchedNodeElmReader.sh
  • Using Riccardo's Matlab script (StructMesh_Channel.m) to create structured mesh for LES_DNS simulation
  • Converting that mesh for use with Chef using runMatchedNodeElmReader.sh
Jump to Notes Below Channel, Bump, meshing
SpanWiseAveragingPostProcessing.mov 2020-02-11 Matlab, Spanwise averaging Matlab scripts, PHASTA
  • Viewing required settings for PHASTA to create spanwise averaged statistic files
  • Using Riccardo's Matlab script to take those files and plot them
N/A post-processing


Video Notes

MatLabMeshAndConvert.mov

Time Stamps

Time Notes
0:00 Begin reviewing code of the Matlab scripts
10:30 Run Example Script
12:45 Observing the files generated by Matlab
13:40 Discussion of using matchedNodeElmReader
14:50 Running of runMatchedNodeElmReader.sh script
16:10 Viewing mesh in Paraview

Notes

Create structured meshes using Matlab script created by Riccardo and other tools. Matlab script defines the "values" of the mesh to be generated, while matchedNodeElmReader actually generates the mesh files themselves.

Note that matchedNodeElmReader may also be referred to/named as streamMds.

Result of Matlab script is 5 different files:

*.crd Coordinates of each vertex
*.class Classification with respect to the geometrical model (a box in this case)
*.cnn Connectivity of each element
*.fathers2D 2D grid of the fathers, Used in spanwise averaging
*.match "vertex matching flag" for periodic boundary conditions

matchedNodeElmReader then takes these files as input and generates two directories: outMesh and rendered. The rendered is a way to view the mesh in Paraview.

The code is run with:

mpirun -np 1 matchedNodeElmReader *.cnn *.crd *.match *.class *.fathers2D output_model.dmg outputMeshDir/

where in the tutorial matchedNodeElmReader is located at /users/rbalin/matchedReader/build-addNfathDebug/test/matchedNodeElnReader. The mesh files (SCOREC Mesh, *.smb) are then placed inside the output mesh directory. A usage message can be shown by running the executable without any arguments.

This command can also be run with multiple MPI processes. Note that this process does "preliminary" partitioning, so the number of mpi processes used is the number of *.smd. The nodes are stored in z, y, x major order (which is generally spanwise, wall-normal, streamwise order), so Riccardo recommends that the number of mpi processes be evenly divisible by the number of streamwise nodes such that these partitions are not divided unevenly.

Once this is done, the *.smb and *.dmg files are fed to Chef for further partitioning and processing.

Meta

Editing the Wiki Page

Just login to the wiki (click the login button at the top right of the page) and click the edit tab at the top of the page. Login information will be the same as your original login for jumpgate (the wiki password is not updated with your jumpgate password if you changed it)

Filling in New Entries

Video Name Date Software Used Description Misc. Tags
Should be the exact name of the video file and should have a link to the actual video. ISO format (YYYY-MM-DD) List of software used, including relevant scripts Short description of what was done in the video Place for random key words that don't fit in other categories (ie. used for using the browsers search function)