|
[Sponsors] |
September 22, 2017, 04:36 |
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 |
|
October 16, 2017, 14:17 |
|
#2 | |
New Member
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 10 |
Quote:
For the first question, use the meanVelocityForce as the driving force in the fvOptions file. You will need to specify the bulk velocity (velocity vector) in the Ubar dictionary. The bulk velocity of the channel flow will be used to calculate the pressure gradient to drive the plane channel flow (take a look at the meanVelocityForce source code). For an example of how the fvOptions file has to be specified, take a look at the channel395 tutorial found in tutorials/incompressible/pimpleFoam directory (or https://github.com/OpenFOAM/OpenFOAM...tant/fvOptions). Your second question is not too clear though. If I am to make an attempt to answer the question, you need to specify the boundary conditions of the passive scalar in the 0/ directory. You also need to determine the numerical schemes for the passive scalar (and hence modify fvSolution and fvScheme files in the system/ directory of the case). |
||
Tags |
fvoptions, passive scalar, pimplefoam, scalar transport |
|
|
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 |