All code can be found at:
DESCRIPTION:
Here we will take an existing solver, pimpleDyMFoam, and simply rename it and compile it so that OpenFOAM recognizes the newly named solver. This may sound trivial, but making your own solver typically would follow this procedure of copying and existing similar solver and adding modifications. Here, we will simply omit the modifications.
The new solver, mySolver, and the original from which it is copied is contained in the ’solvers’ folder.
The tutorial case upon which we will try our new solver comes from the pimpleDyMFoam section of $FOAM_TUTORIALS.
OUTLINE:
-Rename the following files with your new solver name:
-Solver folder
-Solver main source file (.C)
-Application and Source description in the main source file comment header
-Change names in ’Make/files’
-Run ’sudo bash’ to become super user. This is necessary because you might get permissions errors when trying to create your new solver executable in $(FOAM_APPBIN) as specified in ’Make/files’.
-Run ’wclean’ and ’wmake’ in main directory of your new solver.
-Run ’exit’ to leave ’sudo bash’.
-Run ’mySolver -help’ to show that your new compiled custom solver is recognized!
-Run the tutorial case ’mixerVesselAMI2D’ to show that your new solver works! The modifications:
-In controlDict, change ’application pimpleDyMFoam’ to ’application mySolver’
-In controlDict, change ’endTime 5’ to ’endTime 1’ for a shorter run time.
NOTE: we have copied various ’.H’ files into the main directory of this tutorial because the specification of the includes in ’Make/options’ are such that these headers need to be in the directory above the solver main directory (via ’-I..’). You can of course change this, but this is how it is in the default pimpleDyMFoam solver included in $FOAM_SOLVERS.
This tutorial was run successfully on:
-Ubuntu 64-bit
-OpenFOAM
1 view
343
135
1 week ago 00:08:47 2
Fatima Diame | Long Jump | NRG Sport | Athlete 6
2 weeks ago 00:11:38 3
Incredible Moments Caught on Camera | Best of 2024 #10
3 weeks ago 00:08:01 1
Rammstein Chile DVD - PUSSY
4 weeks ago 00:08:37 2
A pool tour with beautiful girls! Turkey Alanya 2024
2 months ago 00:38:45 4
Try Not To Laugh Challenge#7 | Instant Regret Fails Compilation 2024 | Amazing People