
CFD Advice, Tips and Tricks, Best Practices
|
|
|
|
|
CFD Best Practices Guide?Errors and uncertainties in modelling the physics of fluid flow can be divided in few groupes:1. Assumptions and approximations at model building stage (pre-processing):
2. Errors and uncertainties related to model mesh building stage (pre_processing):
3. Numerical errors/uncertainties at model running stage (solution)
4. Post-processing and Interpretation or Results
ercoftac.org/publications/ercoftac_best_practice_guidelines/single-phase_flows_spf/ http://www.grc.nasa.gov/WWW/wind/valid/tutorial/tutorial.html http://www.oecd-nea.org/nsd/csni/cfd/workshops/XCFD4NRS/summaries-gama-wg/Mahaffy.pdf http://files.asme.org/Divisions/FED/16302.pdf pronet.wsatkins.co.uk/marnet/guidelines/guide.html cfd-online.com/Wiki/Best_practice_guidelines ansys.com/customer/webinars/cfdbest.html nafems.org/resources/cfd_guidance http://my.fit.edu/itresources/manuals/fluent13.0/cfx_intr.pdf How to run OpenFOAM on Windows XP/Win7?Recently, OpenFoam folks put very nice and easy tutorial how to run OpenFoam on Windows on their websitehttp://openfoam.com/resources/windows.php How to search for latest patents?Search or browseby inventor name or other search pattern e.g., AIRFLOW DISTRIBUTION TO A LOW EMISSIONS COMBUSTOR http://www.faqs.org/patents/inv/658945
Copy the number 20090222187, go to http://www.faqs.org/patents/app/20090222187 and search or just replace #.pdf with the correct defining number: http://www.freepatentsonline.com/20090222187.pdf
Enjoy full pdf document that can be viewd and/or printed. How to view patents on uspto.gov?Yes, it is puzzling to have US Patent Office website (http://uspto.gov/) use plugins that do not work on most computers. Anyway, there is a relatively simple workaround, just use Apple web-browser Safari.How to run OpenFOAM in parallel?If you have multi-core processor, and most likely you do, you can first try to run in parallel on one PC.The steps are as follows: 1. Copy decomposer file into your working directory let's say your working directory is $HOME/OpenFOAM/userid-1.6/run/tutorials/incompressible/simpleFoam/pitzDaily
then copy decomposeParDict, decomposition parameter file, to your working folder cp $HOME/OpenFOAM/userid-1.6/run/tutorials/inco mpressible/simpleFoam/pitzDailyExptInlet/system/decomposeParDict $HOME/OpenFOAM/userid-1.6/run/tutorials/incompressible/simpleFoam/pitzDaily/system/. and edit decomposeParDict (use nedit or gedit or vi depending on Linux Distros) $ nedit
system/decomposeParDict
and set parameters (number of processors 2, method simple) numberOfSubdomains 2;
method simple; simpleCoeffs { n ( 2 1 1 ); delta 0.001; } 2. Prepare mesh $ blockMesh
and run decomposition script$ decomposePar
and if need to run again $ decomposePar -force
(-force to overwrite previous folders and files)3. Now you are ready to run mpirun script and save output data in case.log. You might want to add & at the end command line to run it in background. $ mpirun -np 2
simpleFoam -parallel >case.log &
4. Reconstruct final results (stored in subfolder processor0, processor1 etc) $ reconstructPar
5. Postprocess results using your favorite postprocessing software eg ParaView on Windows or Linux $ foamToVTK
creates VTK folder result ready to be used by ParaView |