MEMOSA-FVM
USEFUL Links
- WIKI: https://memshub.org/infrastructure/memosa
- DASHBOARD: http://dash.prism.nanohub.org/cdash/index.php?project=MEMOSA
- DOCS & CODE: http://dash.prism.nanohub.org/docs/fvm/
- Log onto Aerosun & checkout code using svn
-bash-3.00$ ssh aerosun
-bash-3.00$ svn checkout https://memshub.org/infrastructure/memosa/svn/trunk FVM-trial
- If you want to see which files have been modified
-bash-3.00$ svn status
- Each time, update the files (specially useful when 2 or more developers working on same file at the same time)
-bash-3.00$ cd FVM-trial
-bash-3.00$ svn update
- To add or delete files
-bash-3.00$ svn add new.txt
-bash-3.00$ svn commit
-bash-3.00$ svn delete new.txt
-bash-3.00$ svn commit
- Repository Layout (purple, useful for fvm)
- data src tools pkgs tests vv doc
- / \ / | \ | / | \
- exp md lammps MPM fvm build rlog fltk gmsh
- / | \
- build etc scripts src test packages SConstruct
- / | \ | / | \
- ./testFlowmodel.py, *.py modules *.cas, eg. cav32.cas
- / | \ \
- atypes exporters fvmbase importers esbgkbase
- / | \
- *.cpp *.h *.i (most imp FlowModel_impl.h )
* data - experimental data, molecular dynamics data and probably other.
* src - the source for the main MEMOSA components.
* tools - build scripts, converters and other minor pieces of software we write.
* pkgs - externally developed packages we require. These will generally not be modified.
* tests - high-level MEMOSA tests.
- Configuration and build
FIle1(aerosun-pkgs in FVM-trial/config/):
# config file for aerosun builds (aerosun-pkgs)
python:
Build=True
numpy:
Build=True
fltk:
Build=True
gsl:
Build=True
gmsh:
Build=True
rlog:
Build=True
boost:
Build=True
swig:
Build=True
fftw:
Build=True
netCDF4:
Build=False
netcdf:
Build=False
File2:(aerosun in FVM-trial/config)
# config file for aerosun builds
Testing:
# before=mpd
lammps:
Build=False
fvm:
Build=True
MPM:
Build=False
-bash-3.00$ ./make.py aerosun-pkgs
...
...
You need to do the following to use the build.
export LD_LIBRARY_PATH=/home/aerosun/a/schigull/FVM-trial/build-aerosun/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/home/aerosun/a/schigull/FVM-trial/build-aerosun/lib:$PYTHONPATH
export PATH=/home/aerosun/a/schigull/FVM-trial/build-aerosun/bin:$PATH
OR source env.sh
-bash-3.00$ ./make.py aerosun
Configuring fvm in /home/aerosun/a/schigull/FVM-trial/build-aerosun/build/fvm : ok
Building fvm in /home/aerosun/a/schigull/FVM-trial/build-aerosun/build/fvm : ok
Installing fvm in /home/aerosun/a/schigull/FVM-trial/build-aerosun : ok
DONE
- Testing:
-bash-3.00$ ./make.py --test aerosun
/home/aerosun/a/schigull/FVM-trial/tools/build/cdash.py:7: DeprecationWarning: the sets module is deprecated
from sets import Set
Testing fvm in /home/aerosun/a/schigull/FVM-trial/build-aerosun : 1 OK, 1 FAIL
Testing MEMOSA in /home/aerosun/a/schigull/FVM-trial/tests : 7 OK, 4 FAIL
----------------------------------------
8 OK, 5 FAIL
- Test cases: Scripts in ~/FVM-trial/build-aerosun/bin/ same as in ~/FVM-trial/src/fvm/scripts/ and Fluent test case files in ~/FVM-trial/src/fvm/test/
-bash-3.00$ cd ~/FVM-trial/build-aerosun/bin/
1) Driven Cavity: (./testFlowModel_Jan29.py, ./testFlowModel.py)
Usage: ./testFlowModel.py filebase [outfilename]
Where filebase.cas is a Fluent case file.
Output will be in filebase-prism.dat if it is not specified.
-bash-3.00$ ./testFlowModel.py ~/FVM-trial/src/fvm/test/cav32 cav32-test.dat
2)Unsteady Cantilever: (./unsteadyCantilever.py)
Usage: ./unsteadyCantilever.py
Change filebase to ~/FVM-trial/src/fvm/src/