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
7 days ago 00:30:54 3
2025’s MOST EPIC MOTORCYCLE crashes Caught on Camera! #3.
2 weeks ago 00:29:33 1
7 Ghost Videos SCARIER Than Pocket Dialing Your Ex
2 weeks ago 00:21:03 2
Try Not To Laugh Challenge 😂 ▶ LEVEL 05 | Instant Regret Fails Compilation 2025
2 weeks ago 00:00:00 1
Peppa Pig Full Episodes - LIVE 🚨 BRAND NEW PEPPA PIG EPISODES ⭐️
2 weeks ago 00:04:51 1
Gazebo - I Like Chopin (Classic)
3 weeks ago 00:03:47 1
Tina Turner - What’s Love Got To Do With It (Official Music Video)
3 weeks ago 00:10:05 1
IDIOTS IN CARS --- Bad drivers & Driving fails -learn how to drive #1288
4 weeks ago 00:07:30 1
UNUSUAL MEMES COMPILATION V301
4 weeks ago 00:10:44 6
ПАРЕНЬ ПРИШЁЛ ЗНАКОМИТЬСЯ С РОДИТЕЛЯМИ ДЕВУШКИ В НАКЛОННЫЙ ДОМ (комедийный скетч Японии на русском)
1 month ago 00:15:08 1
АДСКИЙ СПУСК - ГОНКА ПО СНЕГУ 105км/ч В КУРШЕВЕЛЕ
1 month ago 00:06:38 1
Meme Coin SUPER CYCLE - I Made 1 ETH PER DAY with This Meme Coin Trading Bot
1 month ago 00:06:38 1
How To Make $2000 Per Day With Ai Crypto Trading Bot 2024
1 month ago 00:07:41 1
ChatGPT Ethereum Arbitrage Bot: Earn $1,000 Daily in Passive Income
1 month ago 01:10:14 1
1 HOUR SIGMA PHONK | Сборник сигма фонк треков
1 month ago 01:24:22 27
Mariah Carey, Ariana Grande, José Feliciano, Justin Bieber Style 🎅🏻 Best Christmas Songs 2025 #9
1 month ago 01:25:51 32
Сборник красивых зимних мелодий для души! !Музыка Сергей Грищук #музыкасергейгрищук #МУЗЫКА
1 month ago 02:20:11 1
DISCO KANDI 2 | HEDKANDI RETURN TO THE CLASSICS
2 months ago 01:10:52 3
Sadistic Records Presents: SNUFFED
2 months ago 00:20:44 1
TRY NOT TO LAUGH 😂 Funny Fails Video Compilation🤭People Being Idiots #54