#All codes and cases have been implemented on OpenFOAM-v2006

1. The complete turbulence model package is contained in the folder named: "TurbulenceModelCodes":
	
	The three Reynolds stress based turbulence models discussed in the paper are implemented in this package: SSG/LRR-omega (Eisfeld et al., 2016), SSG/LRR-omega-gamma (Pisharoti et al., 2022) and SSG/LRR-omega-gamma-CF (focus of the current paper).

	A full description of the SSG/LRR-omega  turbulence model is given in '/src/TurbulenceModels/turbulenceModels/Base/SSGLRROmegaBase'. However, the model is implemented in the folder '/src/TurbulenceModels/turbulenceModels/RAS/SSGLRROmega', and it inherits all its member functions from the base model (SSGLRROmegaBase.H). 

	The streamwise transition turbulence model, SSG/LRR-omega-gamma, inherits from the class SSGLRROmega.H and is implemented in the folder named: '/src/TurbulenceModels/turbulenceModels/RAS/SSGLRROmegaGamma'.

	Similarly, the crossflow transition turbulence model, SSG/LRR-omega-gamma-CF, is implemented in the folder named: '/src/TurbulenceModels/turbulenceModels/RAS/SSGLRROmegaGammaCF' and also inherits from the class SSGLRROmega.H.

	To copy and compile all the turbulence models, simply run the Allwmake script that is in the TurbulenceModelCodes folder. 

	To clean up after compiling, simply run the Allwclean script that is in the TurbulenceModelCodes folder (note that the binary files will remain). 

	The directory structure of the TurbulenceModelCodes folder is the same as in the OF installation, so anyone who would like to move the files to the OF installation and compile them there can follow the following steps:

	"""
	cd ~/TurbModelAndCaseFiles/
	cp -r TurbulenceModelCodes/src/TurbulenceModels/turbulenceModels/Base/* $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/Base/
	cp -r TurbulenceModelCodes/src/TurbulenceModels/turbulenceModels/RAS/* $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/RAS/
	cd $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/RAS/SSGLRROmega/
	wmake
	cd $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/RAS/SSGLRROmegaGamma/
	wmake
	cd $WM_PROJECT_DIR/src/TurbulenceModels/turbulenceModels/RAS/SSGLRROmegaGammaCF/
	wmake
	"""

	Note that the binary files still end up in $WM_PROJECT_USER_DIR unless the Make/files files are updated. 

	For further support on compiling turbulence models and making modifications to the code, follow the instructions given here: https://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2022/lectureNotes/implementTurbulenceModel.pdf

	*To study the theory, implementation and validation of the model, refer to "Pisharoti. N. and Brizzolara. S (2025). Prediction of Crossflow Transition Using gamma Transition Model Coupled With Reynolds Stress Transport Turbulence Model. OpenFOAM Journal. https://doi.org/10.51560/ofj.v5.130. 
	
2. The first test case of the NLF (2)-0415 infinite swept wing is in the folder named: "SweptWing_Re3p73"
	
	This is the highest Reynolds number case and uses the "Finer" mesh resolution.

	The Allrun and Allrun.pre scripts have been specified in the folder. 
	
	To test the different models, just replace the name of the model in the "turbulenceProperties" file. 
	
	The necessary libraries for the turbulence models have already been declared in "system/controlDict" file. 

3. The second test case of the DLR 6:1 Prolate Spheroid is in the folder named: "Spheroid_aoa10"
	
	This is the case with an inclination angle = 10 deg and "Fine" mesh resolution.

	IMPORTANT: CONVERT THE BINARY STL FILE TO ASCII BEFORE USING.(Stored as binary to save space). This can be done by opening the file on any CAD software
	and saving it in ASCII format. Refer to this video for reference: https://www.youtube.com/watch?v=UQ7o5VOgwbs
	
	The Mesh and run bash scripts have been added within the folder and need to be modified to include processor and partition details. 
	
	To test the different models, just replace the name of the model in the "turbulenceProperties" file. 
	
	The necessary libraries for the turbulence models have already been declared in the "system/controlDict" file. 


4. Post-processing:

	All the post-processing for this work was carried out on Tecplot. The Allrun script in both test cases generates an EnSight file which is then loaded into Tecplot. The contour and line plots are extracted from the post-processed Tecplot file. 

	Steps for generating the contour plot on Tecplot has been given below:
	
		"""
		Launch Tecplot
		Load case file: 'File->Load Data-> Navigate to file location (Eg: "~/SweptWing_Re3p73/EnSight/")-> Load the ".case" file'
		Load macro script : 'Scripting->Play Macro Script-> Navigate to file location (Eg: "~/SweptWing_Re3p73/ContourPlottingScript")-> Open'
		"""

		This should generate the contour for the wing (or spheroid) as shown in the paper. 

	Steps for generating line plots:
		
		There is no automated script to extract line plots. The macro script (ContourPlottingScript) from the previous step also generates the slice data for the wing (or spheroid) and the authors manually copy the data into a spreadsheet. 
		Once the macro script has been executed, the slice data extraction can be done by following the steps below:
		
		"""
		On the toolbar, go to 'Data->Spreadsheet'
		On the new pop-up window, go to the dropdown menu 'Zone-> 9: Slice:Z=0.2' for the swept wing or 'Zone-> 11: Slice: Arbitrary, Dist=0' for the spheroid.
		Copy the relevant columns into an excel spreadsheet. In the current work, columns labelled 'X','Y','Z','Cf' are extracted. 
		"""

		*Experimental data for the spheroid is also provided in the current package. It contains the Cf-distribution along the XZ-plane for all inclination angles. 
	
