/	master_journal.jou
/
/	Gambit journal file for automatic geometry parameterization
/
/
/	The user must supply the Gambit journal file "geometry_model_name.jou", where
/	"geometry_model_name" is the name of the model in the APECS database.
/	This file will do all of the geometry recreation and meshing.
/
/	APECS must supply the files		"parameterization_inputs.jou"
/									"master_journal.jou"
/									"fluent_journal.jou"
/
/	JFW		2/29/2008
/
/	************************************************************************************
/
/
/	Read in the values of the user-specified parameters
$working_directory = GETCWD()
read file ($working_directory + "/parameterization_inputs.jou")
/
/
/	Create necessary parameters
$model_name = $geometry_model_name
$gambit_journal = $model_name + ".jou"
$mesh_name = $model_name + ".msh"
$interpolation_directory = $working_directory
$mesh_directory = $working_directory  
/
/
/	Create the mesh
read file ($working_directory + "/" + $gambit_journal)
/
/
/	Save the mesh
export fluent5 ($mesh_directory + "/" + $mesh_name)
/
/
/	Create the Fluent journal file
IF COND ($FLUENT_solver .EQ. "steady")
	read file ($journal_directory + "/fluent_journal.jou")
ENDIF
IF COND ($FLUENT_solver .EQ. "unsteady")
	read file ($journal_directory + "/fluent_journal_unsteady.jou")
ENDIF
/
/
/
