|
[Sponsors] |
September 22, 2017, 04:04 |
PimpleFoam solver modification
|
#1 |
New Member
Hungary (Ungarn)
Join Date: Sep 2017
Posts: 16
Rep Power: 9 |
Dear Foamers,
I'm a very new openfoam user, trying to simulate channel flow with pimpleFoam solver. But I would like to add two extra things: 1. A constant pressure gradient to Navier-Stokesequation , which moves the flow, like gravity. I know that fvOptions is just good for it, but could anyone give me a short intro of it, and what kind of momentum source should I use here? I've tried vectorCodedSource but I'm not sure that this is the right way. 2. And second, I tried to add a passive scalar transport equation. I think I just did the appropriate changes in the solver ( thanks to Another attempt at adding temperature to simpleFoam ), but I am not sure what changes should I make in the case file. Thanks for everyone who comments. Gabor |
|
September 22, 2017, 06:48 |
|
#2 |
New Member
Sebastian
Join Date: Feb 2017
Posts: 22
Rep Power: 9 |
Hi Gabor,
did you also had a look at https://openfoamwiki.net/index.php/ScalarTransportFoam ? If you have already defined your mathematical scheme (compiled a new solver?!) then you might have to add the parameter you have introduced in the transportPropertiesDict file. Depending on your new variables you have to add an initial condition in the /0 folder. Therefore you might use for example setFields or if you just have a uniform value, you might copy the file for p. This you have to do for all your new variables. Regards Sebastian |
|
September 25, 2017, 06:02 |
|
#3 |
New Member
Hungary (Ungarn)
Join Date: Sep 2017
Posts: 16
Rep Power: 9 |
Thank you Sebastian. I checked your link, and it seems to work fine.
By the way, have you got any idea for my other (fvOptions) problem? |
|
September 25, 2017, 09:01 |
|
#4 |
New Member
Sebastian
Join Date: Feb 2017
Posts: 22
Rep Power: 9 |
Hi Gabor,
I am not that experienced in using fvOptions and I am not completely sure, if I got your first idea correctly. If you already have modified your solver to add the passive scalar equation you could also modify the code of the pimpleFoam momentum equation and add the gradient source there (especially if its only a constant vector). Maybe you can also have a look at https://github.com/OpenFOAM/OpenFOAM...uoyancyForce.C how here gravity is included. However, this options is not available for pimpleFoam. Maybe some other people can give you more details on fvOptions. |
|
Tags |
fvoptions, passive scalar, pimplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating Point Exception Error | nyox | FLUENT | 11 | November 30, 2018 13:31 |
pimpleFoam - pisoFoam residuals | RodriguezFatz | OpenFOAM Running, Solving & CFD | 1 | September 25, 2014 09:37 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
Quarter Burner mesh with periosic condition | SamCanuck | FLUENT | 2 | August 31, 2011 12:34 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |