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

porousSimpleFoam: oscillating velocity in the porous zone

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2017, 04:06
Default
  #21
New Member
 
Sebastian
Join Date: Feb 2017
Posts: 22
Rep Power: 9
sepp.zell is on a distinguished road
Quote:
Originally Posted by krndv View Post
sorry , i am new to openfoam. Please tell me where to copy this (means which file and where in file)

thank you
Copy the source files of porousSimpleFoam to your case directory. The files can be found by using
Code:
cd $FOAM_SOLVERS/incompressible/simpleFoam
Copy the whole directory of porousSimpleFoam (as mentioned for icoFoam in the tutorial).
As mentioned in the bug-report you have to replace
Code:
U -= rUA*fvc::grad(p)
by
Code:
U = fvc::reconstruct(phi)
in the file pEqn.H. Also changes in
Code:
 .../Make/files
have to be done as mentioned in the icoFoam tutorial. Do not forget to give your solver a new name. Finally run
Code:
wmake
to compile the new solver.
sepp.zell is offline   Reply With Quote

Old   August 21, 2017, 06:49
Default
  #22
New Member
 
karundev
Join Date: Jun 2017
Location: India
Posts: 25
Rep Power: 9
krndv is on a distinguished road
Quote:
Originally Posted by sepp.zell View Post
Copy the source files of porousSimpleFoam to your case directory. The files can be found by using
Code:
cd $FOAM_SOLVERS/incompressible/simpleFoam
Copy the whole directory of porousSimpleFoam (as mentioned for icoFoam in the tutorial).
As mentioned in the bug-report you have to replace
Code:
U -= rUA*fvc::grad(p)
by
Code:
U = fvc::reconstruct(phi)
in the file pEqn.H. Also changes in
Code:
 .../Make/files
have to be done as mentioned in the icoFoam tutorial. Do not forget to give your solver a new name. Finally run
Code:
wmake
to compile the new solver.

Thanks for your Reply.
I am unable to find this equation , Can you please tell in which file it belongs to?
peq.h or ueq.h ?
krndv is offline   Reply With Quote

Old   August 22, 2017, 04:22
Default
  #23
New Member
 
Sebastian
Join Date: Feb 2017
Posts: 22
Rep Power: 9
sepp.zell is on a distinguished road
Quote:
Originally Posted by sepp.zell View Post
As mentioned in the bug-report you have to replace
Code:
U -= rUA*fvc::grad(p)
by
Code:
U = fvc::reconstruct(phi)
in the file pEqn.H.
As I wrote you have to look into the file pEqn.H.

Since I do not know, which version of openFoam you are using, I can not give you all the details. In the newest version it should correspond to
Code:
if (pressureImplicitPorosity)
{
    U = HbyA - (trTU()&fvc::grad(p));
}
else
{
    U = HbyA - (trAU()*fvc::grad(p));
}
I guess here you have to change the lines.
sepp.zell is offline   Reply With Quote

Reply


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
Oscillating velocity and porous zones alberto OpenFOAM Running, Solving & CFD 4 October 28, 2016 04:14
Heat source in porous zone anger OpenFOAM Running, Solving & CFD 11 December 16, 2013 10:49
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 02:08
Temperature drop after porous zone MN FLUENT 0 December 10, 2003 13:28
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 06:31.