Compiling Your Own Custom OpenFOAM Solver, Part 0

  Рет қаралды 30,910

OpenFOAM Tutorials

OpenFOAM Tutorials

Күн бұрын

All code can be found at: github.com/lor...
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 14.04 64-bit
-OpenFOAM 2.3.1

Пікірлер: 23
@prasadadhav93
@prasadadhav93 4 жыл бұрын
Thank you for the video. It helped. Was looking for something like this for some time.
@bob19dylan
@bob19dylan 9 жыл бұрын
Great video ! Good teacher. Will try it .
@merajahmed8069
@merajahmed8069 4 жыл бұрын
great video. thanks
@MiladKiaeeDreamTheater
@MiladKiaeeDreamTheater 9 жыл бұрын
Good job! keep it up
@chero1021
@chero1021 2 жыл бұрын
good friend, I have tried and I have not been able to create my own solved.
@ardacetiner9968
@ardacetiner9968 4 жыл бұрын
I have ubuntu 20.04.1 LTS and OpenFOAM 8. Without "sudo bash" I got an "permission denied" error at the end of compiling process as you mentioned in the video. But when I use "sudo bash" command, this time it comes with "command not found". What should I do ? Thank you!
@ThePVREIS
@ThePVREIS 4 жыл бұрын
Hey, Have you solved it? I have the same issue when I type 'wmake'
@ardacetiner9968
@ardacetiner9968 4 жыл бұрын
@@ThePVREIS Unfortunately not
@leobazin9478
@leobazin9478 3 жыл бұрын
@@ThePVREIS I am currently facing the same issue with the 'wmake'. I checked if make was installed/updated and it was... Did u managed to solve this problem ?
@HaithamAhmed-kr8yl
@HaithamAhmed-kr8yl 2 жыл бұрын
+1
@jayyadav7302
@jayyadav7302 7 ай бұрын
i had similar issue, Following action i did to overcome with this issue please check if you have installed make package with below command -which wmake This command should return the path to wmake if it is installed correctly. If it doesn't return anything, wmake might not be installed or the path might not be set correctly. if it is already installed then with following command, you can give permission -ls -l /opt/openfoam9/wmake/wmake -chmod +x /opt/openfoam9/wmake/wmake
@sajidashamsher8229
@sajidashamsher8229 4 жыл бұрын
In wmake it show error what should i do ? I run wmake without sudo bash. Because with sudo bash it not tun
@pedroxramos
@pedroxramos 2 жыл бұрын
same here. better run wmake without sudo...
@anuragray6408
@anuragray6408 5 жыл бұрын
hey can u tell me which version of ubuntu are u using and version of openFoam? if possible can u suggest me the tutorials to install openFoam in ur ubuntu version?
@MM-fp8xx
@MM-fp8xx 5 жыл бұрын
This tutorial was run successfully on: -Ubuntu 14.04 64-bit -OpenFOAM 2.3.1
@komodiemo93
@komodiemo93 6 жыл бұрын
Gracias, pude al fin utilizar uno para resolver reactores tubulares en 1D, Ex. 6: Tubular reactor - Run it, en linux mitn 19
@OpenFOAMTutorials
@OpenFOAMTutorials 6 жыл бұрын
If google translate is correct: "Thanks, I was finally able to use one to solve tubular reactors in 1D, Ex. 6: Tubular reactor - Run it, in linux mitn 19" then glad to be of help!
@komodiemo93
@komodiemo93 6 жыл бұрын
Ah utilice OpenFoam6, Gracias.
@antoine1407
@antoine1407 3 жыл бұрын
I am implementing a vof model, can I ask you for an advice ?
@chero1021
@chero1021 2 жыл бұрын
friend knows a tutorial to create a new solution like the one from vanleer
@heutelbeck_official
@heutelbeck_official 6 жыл бұрын
At 3:05: what makes the "wclen"?
@OpenFOAMTutorials
@OpenFOAMTutorials 6 жыл бұрын
I don't think I built wclean here, but if you do "which wclean" you can find where it is located.
Programming in OpenFOAM: Adding energy equation Part 1
15:16
Hyper Lyceum
Рет қаралды 16 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 363 М.
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 950 М.
6 Months of Testing C++ Build Systems: Here’s What You Need to Know
16:33
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 584 М.
Malware Development: Processes, Threads, and Handles
31:29
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 43 МЛН
OpenFOAM fvSchemes explained in under 5 mins
4:52
CFD For Everyone - Nik L
Рет қаралды 17 М.
The symptoms of bad code - Robert C. Martin (Uncle Bob)
5:42
Dev Tools Made Simple
Рет қаралды 35 М.
How to create and export your geometry for simulations in OpenFOAM - tutorial
19:41
József Nagy (OpenFOAM tutorials)
Рет қаралды 73 М.
Compiling Your Own Custom OpenFOAM Solver: Time Profiling
7:07
OpenFOAM Tutorials
Рет қаралды 6 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41