From 1c7da8eb96579c79bb446415303bb1e0db501e65 Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Wed, 4 Jun 2014 12:13:10 +0530 Subject: added solver list, minor changes. --- code.inc | 87 +++++++++++++++++++++++++++++++++++++++++++++++-- manage_proposal.inc | 2 +- proposal.inc | 2 +- textbook_companion.info | 2 +- 4 files changed, 88 insertions(+), 5 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", + ); +} diff --git a/manage_proposal.inc b/manage_proposal.inc index ce4ca2b..272242a 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -511,7 +511,7 @@ function proposal_edit_form($form_state) $form['how_project'] = array( '#type' => 'select', '#title' => t('How did you come to know about this project'), - '#options' => array('Oscad Website' => 'Oscad Website', + '#options' => array('CFD Website' => 'CFD Website', 'Friend' => 'Friend', 'Professor/Teacher' => 'Professor/Teacher', 'Mailing List' => 'Mailing List', diff --git a/proposal.inc b/proposal.inc index 6b45639..1f93577 100755 --- a/proposal.inc +++ b/proposal.inc @@ -71,7 +71,7 @@ function book_proposal_form($form_state) $form['how_project'] = array( '#type' => 'select', '#title' => t('How did you come to know about this project'), - '#options' => array('Oscad Website' => 'Oscad Website', + '#options' => array('CFD Website' => 'CFD Website', 'Friend' => 'Friend', 'Professor/Teacher' => 'Professor/Teacher', 'Mailing List' => 'Mailing List', diff --git a/textbook_companion.info b/textbook_companion.info index 318a814..b2d0bde 100755 --- a/textbook_companion.info +++ b/textbook_companion.info @@ -1,6 +1,6 @@ name = Textbook Companion description = Textbook Companion project, IIT Bombay -package = Oscad +package = CFD version = VERSION core = 6.x dependencies[] = ahah_helper -- cgit