Creating geom.spj
From PHASTA Wiki
- 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.
- The names of the attributes are arbitrary, but should be something meaningful to the user and whoever else is involved in the project.
For Incompressible Flow
Inflow
- 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 vector magnitude 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].
scalar_1: Set the field "Type: scalar_1" to 1.8e-7. This is the eddy viscosity at the inlet.