Difference between revisions of "Synthetic Turbulence Inflow Generator"
Line 7: | Line 7: | ||
* STGSpectra.dat | * STGSpectra.dat | ||
* STGRand.dat | * STGRand.dat | ||
+ | All of the mentioned MATLAB scripts in this page are in the STGInit subdirectory of the file structure contained in the PHASTA code-tree from github. | ||
=== STGInflow.dat === | === STGInflow.dat === | ||
Line 15: | Line 16: | ||
This file will contain random numbers for the N spectral modes. This is not a spatially varying set of numbers as the spectra is. | This file will contain random numbers for the N spectral modes. This is not a spatially varying set of numbers as the spectra is. | ||
− | == | + | == Preparation of Auxiliary Files == |
+ | |||
+ | ===STGInflow.dat=== | ||
+ | This auxiliary file will be required not only for the running of PHASTA, but also, will be required for the random number optimization. The user will need mean flow field data at the position of the inflow from some preliminary simulation such as RANS data or data repository. | ||
== Running the code == | == Running the code == |
Revision as of 15:50, 22 February 2021
Synthetic Turbulence Inflow Generator (STG)
Contents
Overview
The Synthetic Turbulence Inflow generator is a method to produce an inflow boundary condition that results in turbulent flow in a short downstream distance. This method is desired to be more computationally efficient than resolving a flow through from transition. This page will cover the workflow to produce the necessary auxiliary files for running a simulation with the STG boundary condition. There are three auxiliary files that are needed for the method in the n-procs_case directory at runtime:
- STGInflow.dat
- STGSpectra.dat
- STGRand.dat
All of the mentioned MATLAB scripts in this page are in the STGInit subdirectory of the file structure contained in the PHASTA code-tree from github.
STGInflow.dat
This is a file that will contain the mean velocity profiles, mean cross correlation targets, and any additional turbulence modeled scalars.
STGSpectra.dat
This file will contain the N spectral modes for each node that has the STG the boundary condition.
STGRand.dat
This file will contain random numbers for the N spectral modes. This is not a spatially varying set of numbers as the spectra is.
Preparation of Auxiliary Files
STGInflow.dat
This auxiliary file will be required not only for the running of PHASTA, but also, will be required for the random number optimization. The user will need mean flow field data at the position of the inflow from some preliminary simulation such as RANS data or data repository.