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

PimpleFoam solver modification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2017, 04:04
Post PimpleFoam solver modification
  #1
New Member
 
Hungary (Ungarn)
Join Date: Sep 2017
Posts: 16
Rep Power: 9
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   September 22, 2017, 06:48
Default
  #2
New Member
 
Sebastian
Join Date: Feb 2017
Posts: 22
Rep Power: 9
sepp.zell is on a distinguished road
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
sepp.zell is offline   Reply With Quote

Old   September 25, 2017, 06:02
Default
  #3
New Member
 
Hungary (Ungarn)
Join Date: Sep 2017
Posts: 16
Rep Power: 9
miha23 is on a distinguished road
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?
miha23 is offline   Reply With Quote

Old   September 25, 2017, 09:01
Default
  #4
New Member
 
Sebastian
Join Date: Feb 2017
Posts: 22
Rep Power: 9
sepp.zell is on a distinguished road
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.
sepp.zell is offline   Reply With Quote

Reply

Tags
fvoptions, passive scalar, pimplefoam


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 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


All times are GMT -4. The time now is 07:57.