CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

PimpleFoam solver modification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2017, 03:36
Post PimpleFoam solver modification
  #1
New Member
 
Hungary (Ungarn)
Join Date: Sep 2017
Posts: 16
Rep Power: 8
miha23 is on a distinguished road
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
miha23 is offline   Reply With Quote

Old   October 16, 2017, 13:17
Default
  #2
New Member
 
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 9
Elliptic CFD is on a distinguished road
Quote:
Originally Posted by miha23 View Post
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

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).
Elliptic CFD is offline   Reply With Quote

Reply

Tags
fvoptions, passive scalar, pimplefoam, scalar transport


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating Point Exception Error nyox FLUENT 11 November 30, 2018 12:31
pimpleFoam - pisoFoam residuals RodriguezFatz OpenFOAM Running, Solving & CFD 1 September 25, 2014 08:37
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 11:34
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 05:10.