Difference between revisions of "Prepping the Grid for Chef"

From PHASTA Wiki
Jump to: navigation, search
m (Added link to previous steps)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Create a new folder called <code>PrepAndRun<code> in the OnRamp folder, and enter said folder. Create a new folder inside PrepAndRun called <code>simMeshToMdsMesh<code>, and enter that folder as well. Copy the file <code>simMeshToMdsMesh.sh<code> into this folder from the tutorials folder. Create soft links to your geometry, mesh, and boundary conditions by executing the following commands:
+
Create a new folder called <code>PrepAndRun</code> in the OnRamp folder, and enter said folder. Create a new folder inside PrepAndRun called <code>simMeshToMdsMesh</code>, and enter that folder as well. Copy the file <code>simMeshToMdsMesh.sh</code> into this folder from the <code>/projects/tutorials/OnRamp</code> folder. Create soft links to your boundary conditions, mesh, and geometry by executing the following commands:
  
  ln -s ../../translated-model.smd geom.smd
+
  ln -s ../../<model name>.smd geom.smd
 
  ln -s ../../<mesh name>.sms geom.sms
 
  ln -s ../../<mesh name>.sms geom.sms
 
  ln -s ../../<geometry name>.xmt_txt geom.xmt_txt
 
  ln -s ../../<geometry name>.xmt_txt geom.xmt_txt
  
All three files must be called "geom" in this folder since that is what the convert script expects.  
+
<model name> and <mesh name> should be replaced with the names of the most up to date versions you saved out of Simmodeler in the [https://fluid.colorado.edu/wiki/index.php/Getting_Started_with_Simmodeler previous steps]. All three files being soft linked must be called "geom" in this folder since that is what the convert script expects. Now, run the convert script with the following command:
  
 +
./simMeshToMdsMesh.sh
  
 +
If done properly, you will output a subdirectory called <code>mdsMesh_bz2/</code>. In this directory, there should be a file called <code>0.smb</code>, which is what Chef will use in the next step. If you are ready to get started using Chef, head over to [[Level 1 Partition]].
  
The linked [https://fluid.colorado.edu/tutorials/RajDemoPrepSolvePost.mov video] will take you through the process of converting your mesh (<code>.sms</code> file) and your model (<code>.smd</code> file) into a single file that [[Chef]] can read and work with. If done properly, you will output a subdirectory called <code>mdsMesh_bz2/</code>. In this directory, there should be a file called <code>0.smb</code>, which is what Chef will use. If you are ready to get started using Chef, head over to [[Level 1 Partition]].
+
 
 +
For more information, the linked [https://fluid.colorado.edu/tutorials/tutorialVideos/RajDemoPrepSolvePost.mov video] explains this process in detail.

Latest revision as of 15:48, 31 August 2023

Create a new folder called PrepAndRun in the OnRamp folder, and enter said folder. Create a new folder inside PrepAndRun called simMeshToMdsMesh, and enter that folder as well. Copy the file simMeshToMdsMesh.sh into this folder from the /projects/tutorials/OnRamp folder. Create soft links to your boundary conditions, mesh, and geometry by executing the following commands:

ln -s ../../<model name>.smd geom.smd
ln -s ../../<mesh name>.sms geom.sms
ln -s ../../<geometry name>.xmt_txt geom.xmt_txt

<model name> and <mesh name> should be replaced with the names of the most up to date versions you saved out of Simmodeler in the previous steps. All three files being soft linked must be called "geom" in this folder since that is what the convert script expects. Now, run the convert script with the following command:

./simMeshToMdsMesh.sh

If done properly, you will output a subdirectory called mdsMesh_bz2/. In this directory, there should be a file called 0.smb, which is what Chef will use in the next step. If you are ready to get started using Chef, head over to Level 1 Partition.


For more information, the linked video explains this process in detail.