diff options
Diffstat (limited to 'code.inc')
-rwxr-xr-x | code.inc | 87 |
1 files changed, 85 insertions, 2 deletions
@@ -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", + ); +} |