Difference between revisions of "Creating geom.spj"
From PHASTA Wiki
Line 12: | Line 12: | ||
*Setting the Inflow Conditions | *Setting the Inflow Conditions | ||
− | comp3: The name is arbitrary but should be set to something meaningful (i.e. Inflow). Set vector magnitude to the free-stream velocity you want. Set the vector direction to the direction (i.e. if the free-stream velocity moves strictly along the x-axis, the direction would be [1 0 0]). | + | comp3: The name is arbitrary but should be set to something meaningful (i.e. Inflow). Set vector magnitude to the free-stream velocity you want. Set the vector direction to the direction (i.e. if the free-stream velocity moves strictly along the x-axis, the direction would be [1 0 0]). Even if the free-stream velocity is 0, the direction CAN NOT be [0 0 0]. This will cause Phasta to crash. It must have at least one non-zero component. In this case, just set it to [1 0 0]. |
Revision as of 09:41, 15 July 2013
- create a directory for the smf and spj files (mkdir SMF_and_SPJ_files). cd to that directory and start SimulationMaker:
vglrun /usr/local/simapps/sdk-090321/simapps SimulationMaker
- Default Solver: Phasta
- Browse to the appropriate geometry file and select it (make sure it is not the SpaceClaim parasolid file; it should be the file you saved from ThreeDViewer - geom.xmt_txt)
- Turn OFF sliver feature supression
- Click Define Simulation Model Instance
- The attribute list and model will appear in split windows. At the top of the list, double click on the name "problem definition" and set the name to "geom".
- To set attributes, make sure the field with "geom", which you just changed, is selected. Using the model to the right, click on whichever faces you want to give attributes, and go to "Create" at the upper left hand corner to select the appropriate attribute.
For Incompressible Flow
- Setting the Inflow Conditions
comp3: The name is arbitrary but should be set to something meaningful (i.e. Inflow). Set vector magnitude to the free-stream velocity you want. Set the vector direction to the direction (i.e. if the free-stream velocity moves strictly along the x-axis, the direction would be [1 0 0]). Even if the free-stream velocity is 0, the direction CAN NOT be [0 0 0]. This will cause Phasta to crash. It must have at least one non-zero component. In this case, just set it to [1 0 0].