|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | == Installing multiSolver ==
| + | This project has migrated over to '''github'''. |
− | To install '''multiSolver''':
| + | |
| | | |
− | 0. If you are running pre-compiled binaries, first make sure you can compile your copy of OpenFOAM.
| + | '''''[http://github.com/Marupio/multiSolver/wiki Click here for the new website.]''''' |
| | | |
− | 1. Download the code from [http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Breeder_1.5/libraries/multiSolverExtension/?view=tar here].
| + | http://github.com/Marupio/multiSolver/wiki |
− | | + | |
− | http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Breeder_1.5/libraries/multiSolverExtension/?view=tar
| + | |
− | | + | |
− | 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/utilities/postProcessing/multiPost
| + | |
− | wmake
| + | |
− | cd $FOAM_APP/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/multiSolverDemo $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
| + | |
− | | + | |
− | The test case also has ''storeFields'' defined to demonstrate their use:
| + | |
− | | + | |
− | * <tt>icoFoam</tt> doesn't need the <tt>T</tt> field, so it ''stores'' this field; and
| + | |
− | * <tt>scalarTransportFoam</tt> doesn't need the <tt>P</tt> field.
| + | |
− | | + | |
− | Since <tt>icoFoam1</tt> is the first to run, it must have ''all'' fields defined in its <tt>initial/0</tt> directory, even though it is storing the <tt>T</tt> field.
| + | |