summaryrefslogtreecommitdiff
path: root/code.inc
diff options
context:
space:
mode:
authorJayaram Pai2014-06-04 12:13:10 +0530
committerJayaram Pai2014-06-04 12:13:10 +0530
commit1c7da8eb96579c79bb446415303bb1e0db501e65 (patch)
tree258f45fa9d8d247deb7aa216912d837477eaeade /code.inc
parent4f3462829275e1cd57ba3641abc1d59b7e70e1a5 (diff)
downloadcfd_textbook_companion-1c7da8eb96579c79bb446415303bb1e0db501e65.tar.gz
cfd_textbook_companion-1c7da8eb96579c79bb446415303bb1e0db501e65.tar.bz2
cfd_textbook_companion-1c7da8eb96579c79bb446415303bb1e0db501e65.zip
added solver list, minor changes.HEADmaster
Diffstat (limited to 'code.inc')
-rwxr-xr-xcode.inc87
1 files changed, 85 insertions, 2 deletions
diff --git a/code.inc b/code.inc
index 58a23e2..0cf55b6 100755
--- a/code.inc
+++ b/code.inc
@@ -128,8 +128,8 @@ function upload_examples_form($form_state)
);
$form['example_type'] = array(
'#type' => 'select',
- '#title' => t('Example Type'),
- '#options' => array('' => '(Select)', 1 => 'Simulation', 2 => 'PCB', 3 => 'Simulation & PCB'),
+ '#title' => t('Solver Type'),
+ '#options' => _list_of_solvers(),
'#multiple' => FALSE,
'#size' => 1,
'#required' => TRUE,
@@ -529,3 +529,86 @@ function _list_of_book_dependency_files()
return array($book_dependency_files, $book_dependency_files_class);
}
+function _list_of_solvers() {
+ return array(
+ "laplacianFoam" => "laplacianFoam",
+ "potentialFoam" => "potentialFoam",
+ "scalarTransportFoam" => "scalarTransportFoam",
+ "adjointShapeOptimizationFoam" => "adjointShapeOptimizationFoam",
+ "boundaryFoam" => "boundaryFoam",
+ "channelFoam" => "channelFoam",
+ "icoFoam" => "icoFoam",
+ "MRFSimpleFoam" => "MRFSimpleFoam",
+ "nonNewtonianIcoFoam" => "nonNewtonianIcoFoam",
+ "pimpleDyMFoam" => "pimpleDyMFoam",
+ "pimpleFoam" => "pimpleFoam",
+ "pisoFoam" => "pisoFoam",
+ "porousSimpleFoam" => "porousSimpleFoam",
+ "shallowWaterFoam" => "shallowWaterFoam",
+ "simpleFoam" => "simpleFoam",
+ "SRFSimpleFoam" => "SRFSimpleFoam",
+ "windSimpleFoam" => "windSimpleFoam",
+ "rhoCentralFoam" => "rhoCentralFoam",
+ "rhoCentralDyMFoam" => "rhoCentralDyMFoam",
+ "rhoPimpleFoam" => "rhoPimpleFoam",
+ "rhoPorousMRFLTSPimpleFoam" => "rhoPorousMRFLTSPimpleFoam",
+ "rhoPorousMRFSimpleFoam" => "rhoPorousMRFSimpleFoam",
+ "rhoPorousMRFPimpleFoam" => "rhoPorousMRFPimpleFoam",
+ "rhoSimplecFoam" => "rhoSimplecFoam",
+ "rhoSimpleFoam" => "rhoSimpleFoam",
+ "sonicDyMFoam" => "sonicDyMFoam",
+ "sonicFoam" => "sonicFoam",
+ "sonicLiquidFoam" => "sonicLiquidFoam",
+ "bubbleFoam" => "bubbleFoam",
+ "cavitatingFoam" => "cavitatingFoam",
+ "compressibleInterFoam" => "compressibleInterFoam",
+ "interFoam" => "interFoam",
+ "interDyMFoam" => "interDyMFoam",
+ "interMixingFoam" => "interMixingFoam",
+ "interPhaseChangeFoam" => "interPhaseChangeFoam",
+ "LTSInterFoam" => "LTSInterFoam",
+ "MRFInterFoam" => "MRFInterFoam",
+ "MRFMultiphaseInterFoam" => "MRFMultiphaseInterFoam",
+ "multiphaseInterFoam" => "multiphaseInterFoam",
+ "porousInterFoam" => "porousInterFoam",
+ "settlingFoam" => "settlingFoam",
+ "twoLiquidMixingFoam" => "twoLiquidMixingFoam",
+ "twoPhaseEulerFoam" => "twoPhaseEulerFoam",
+ "dnsFoam" => "dnsFoam",
+ "chemFoam" => "chemFoam",
+ "coldEngineFoam" => "coldEngineFoam",
+ "dieselEngineFoam" => "dieselEngineFoam",
+ "dieselFoam" => "dieselFoam",
+ "engineFoam" => "engineFoam",
+ "fireFoam" => "fireFoam",
+ "PDRFoam" => "PDRFoam",
+ "reactingFoam" => "reactingFoam",
+ "rhoReactingFoam" => "rhoReactingFoam",
+ "XiFoam" => "XiFoam",
+ "coalChemistryFoam" => "coalChemistryFoam",
+ "icoUncoupledKinematicParcelDyMFoam" => "icoUncoupledKinematicParcelDyMFoam",
+ "icoUncoupledKinematicParcelFoam" => "icoUncoupledKinematicParcelFoam",
+ "LTSReactingParcelFoam" => "LTSReactingParcelFoam",
+ "porousExplicitSourceReactingParcelFoam" => "porousExplicitSourceReactingParcelFoam",
+ "reactingParcelFilmFoam" => "reactingParcelFilmFoam",
+ "reactingParcelFoam" => "reactingParcelFoam",
+ "uncoupledKinematicParcelFoam" => "uncoupledKinematicParcelFoam",
+ "buoyantBaffleSimpleFoam" => "buoyantBaffleSimpleFoam",
+ "buoyantBoussinesqPimpleFoam" => "buoyantBoussinesqPimpleFoam",
+ "buoyantBoussinesqSimpleFoam" => "buoyantBoussinesqSimpleFoam",
+ "buoyantPimpleFoam" => "buoyantPimpleFoam",
+ "buoyantSimpleFoam" => "buoyantSimpleFoam",
+ "buoyantSimpleRadiationFoam" => "buoyantSimpleRadiationFoam",
+ "chtMultiRegionFoam" => "chtMultiRegionFoam",
+ "heatConductionFoam"=> "heatConductionFoam",
+ "buoyantFoammdEquilibrationFoam" => "buoyantFoammdEquilibrationFoam",
+ "mdFoam" => "mdFoam",
+ "dsmcFoam" => "dsmcFoam",
+ "electrostaticFoam" => "electrostaticFoam",
+ "magneticFoam" => "magneticFoam",
+ "mhdFoam" => "mhdFoam",
+ "solidDisplacementFoam" => "solidDisplacementFoam",
+ "solidEquilibriumDisplacementFoam" => "solidEquilibriumDisplacementFoam",
+ "financialFoam" => "financialFoam",
+ );
+}