Difference between revisions of "Contrib multiSolver/installation"
From OpenFOAMWiki
(Created page with 'To install '''multiSolver''': 0. If you are running pre-compiled binaries, first make sure you can compile your copy of OpenFOAM. 1. Download the code from [http://openfoam-ext…') |
|||
Line 1: | Line 1: | ||
+ | == Installing multiSolver == | ||
To install '''multiSolver''': | To install '''multiSolver''': | ||
0. If you are running pre-compiled binaries, first make sure you can compile your copy of OpenFOAM. | 0. If you are running pre-compiled binaries, first make sure you can compile your copy of OpenFOAM. | ||
− | 1. Download the code from [http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Breeder_1.5/libraries/ | + | 1. Download the code from [http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Breeder_1.5/libraries/multiSolverExtension/?view=tar here]. |
− | http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Breeder_1.5/libraries/ | + | http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Breeder_1.5/libraries/multiSolverExtension/?view=tar |
− | 2. | + | 2. Open a terminal window and browse to the folder with your download. |
+ | |||
+ | 3. Execute the following commands. You should be able to just copy and paste all X lines into your terminal: | ||
+ | |||
+ | tar --transform='s,multiSolverExtension,'$WM_PROJECT_DIR',' \ | ||
+ | -x -v -z -P -f openfoam-extend-multiSolverExtension.tar.gz | ||
+ | cd $WM_PROJECT_DIR/src/multiSolver | ||
+ | wmake libso | ||
+ | cd $FOAM_APP/applications/utilities/postProcessing/multiPost | ||
+ | wmake | ||
+ | cd $FOAM_APP/applications/solvers/multiSolver/multiSolverDemo | ||
+ | wmake | ||
+ | |||
+ | multiSolver should now be installed. | ||
+ | |||
+ | == Testing the installation == | ||
+ | |||
+ | The installation comes with a demo application and test case. First copy the test case into you run/tutorials directory: | ||
+ | |||
+ | cp -rf $WM_PROJECT_DIR/tutorials/equationReader $FOAM_RUN/tutorials | ||
+ | |||
+ | To run the test case: | ||
+ | |||
+ | cd $FOAM_RUN/tutorials/multiSolverDemo/teeFitting2d | ||
+ | blockMesh | ||
+ | mutliSolverDemo | ||
+ | |||
+ | To view the results: | ||
+ | |||
+ | multiPost -load all | ||
+ | multiPost -set icoFoam1 | ||
+ | paraFoam | ||
+ | |||
+ | === About the test case === | ||
+ | |||
+ | The demo application is: | ||
+ | |||
+ | # <tt>icoFoam1</tt> - i.e. <tt>icoFoam</tt> with boundary conditions 1; | ||
+ | # <tt>scalarTransportFoam</tt>; | ||
+ | # <tt>icoFoam2</tt> - i.e. <tt>icoFoam</tt> with boundary conditions 2; | ||
+ | # <tt>scalarTransportFoam</tt> (again); | ||
+ | # repeat. | ||
+ | |||
+ | The test case is a 2-dimensional tee fitting. The boundary conditions are: | ||
+ | |||
+ | 1. <tt>icoFoam1</tt>: | ||
+ | |||
+ | Inlet | ||
+ | || | ||
+ | || | ||
+ | Closed ====== Outlet | ||
+ | |||
+ | 2. <tt>scalarTransportFoam</tt> | ||
+ | |||
+ | T = 1 | ||
+ | || | ||
+ | || | ||
+ | zeroG ====== zeroG | ||
+ | |||
+ | |||
+ | 3. <tt>icoFoam2</tt> | ||
+ | |||
+ | Outlet | ||
+ | || | ||
+ | || | ||
+ | Outlet ====== Inlet | ||
+ | |||
+ | 4. <tt>scalarTransportFoam</tt> | ||
+ | |||
+ | T = 1 | ||
+ | || | ||
+ | || | ||
+ | zeroG ====== zeroG |
Revision as of 11:32, 23 July 2010
1 Installing multiSolver
To install multiSolver:
0. If you are running pre-compiled binaries, first make sure you can compile your copy of OpenFOAM.
1. Download the code from here.
2. Open a terminal window and browse to the folder with your download.
3. Execute the following commands. You should be able to just copy and paste all X lines into your terminal:
tar --transform='s,multiSolverExtension,'$WM_PROJECT_DIR',' \ -x -v -z -P -f openfoam-extend-multiSolverExtension.tar.gz cd $WM_PROJECT_DIR/src/multiSolver wmake libso cd $FOAM_APP/applications/utilities/postProcessing/multiPost wmake cd $FOAM_APP/applications/solvers/multiSolver/multiSolverDemo wmake
multiSolver should now be installed.
2 Testing the installation
The installation comes with a demo application and test case. First copy the test case into you run/tutorials directory:
cp -rf $WM_PROJECT_DIR/tutorials/equationReader $FOAM_RUN/tutorials
To run the test case:
cd $FOAM_RUN/tutorials/multiSolverDemo/teeFitting2d blockMesh mutliSolverDemo
To view the results:
multiPost -load all multiPost -set icoFoam1 paraFoam
2.1 About the test case
The demo application is:
- icoFoam1 - i.e. icoFoam with boundary conditions 1;
- scalarTransportFoam;
- icoFoam2 - i.e. icoFoam with boundary conditions 2;
- scalarTransportFoam (again);
- repeat.
The test case is a 2-dimensional tee fitting. The boundary conditions are:
1. icoFoam1:
Inlet || || Closed ====== Outlet
2. scalarTransportFoam
T = 1 || || zeroG ====== zeroG
3. icoFoam2
Outlet || || Outlet ====== Inlet
4. scalarTransportFoam
T = 1 || || zeroG ====== zeroG