Difference between revisions of "Contrib multiSolver/installation"
Line 16: | Line 16: | ||
cd $WM_PROJECT_DIR/src/multiSolver | cd $WM_PROJECT_DIR/src/multiSolver | ||
wmake libso | wmake libso | ||
− | cd $FOAM_APP/utilities/postProcessing/ | + | cd $FOAM_APP/utilities/postProcessing/multiSolver |
wmake | wmake | ||
cd $FOAM_APP/solvers/multiSolver/multiSolverDemo | cd $FOAM_APP/solvers/multiSolver/multiSolverDemo | ||
Line 27: | Line 27: | ||
The installation comes with a demo application and test case. First copy the test case into you run/tutorials directory: | 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/ | + | cp -rf $WM_PROJECT_DIR/tutorials/multiSolver $FOAM_RUN/tutorials |
To run the test case: | To run the test case: | ||
− | cd $FOAM_RUN/tutorials/multiSolverDemo/teeFitting2d | + | cd $FOAM_RUN/tutorials/multiSolver/multiSolverDemo/teeFitting2d |
blockMesh | blockMesh | ||
multiSolverDemo | multiSolverDemo | ||
Line 37: | Line 37: | ||
To view the results: | To view the results: | ||
− | + | multiSolver -load all | |
− | + | multiSolver -set icoFoam1 | |
paraFoam | paraFoam | ||
Revision as of 14:16, 6 April 2011
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/utilities/postProcessing/multiSolver wmake cd $FOAM_APP/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/multiSolver $FOAM_RUN/tutorials
To run the test case:
cd $FOAM_RUN/tutorials/multiSolver/multiSolverDemo/teeFitting2d blockMesh multiSolverDemo
To view the results:
multiSolver -load all multiSolver -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
The test case also has storeFields defined to demonstrate their use:
- icoFoam doesn't need the T field, so it stores this field; and
- scalarTransportFoam doesn't need the P field.
Since icoFoam1 is the first to run, it must have all fields defined in its initial/0 directory, even though it is storing the T field.