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

fvOptions- DarcyForchheimer Modification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2017, 18:50
Default fvOptions- DarcyForchheimer Modification
  #1
us7
New Member
 
Umer
Join Date: Aug 2016
Posts: 29
Rep Power: 10
us7 is on a distinguished road
Hi foamers,

I am using Openfoam V 2.4 and trying to add a relative permeability into DarcyForchheimer Model (already available in OpenFoam src/finiteVolume/cfdTools/gernal/porosity model). I want to use this with twoPhaseEulerFoam by specifying an explicitPorositySource --> DarcyForchheimer in the fvOptions file.

-available source term for DarcyForchheimer is
Si = -(μ D + 1/2ρ|u|F)ui where D = 1/K , K= intrinsic permeability that is directly feed in /constant/fvOptions e.g. d d [2e106 -1000 -1000] m2

What i am trying to do:
-Trying to add is K--> KKri in case of two phase for relative permeability if Kri=alpha then source term will become
Si = -(μ D/alpha + 1/2ρ|u|F)ui
In short i just want to divide D with alpha and alpha value should be coming from the actual solver that is twoPhaseEulerfoam just like its getting value of U.

For this i added scalarField alpha by just follwing U in all related Files

>modified DarcyForchheimerTemplate.C by changing
part of "
(mu[cellI]*dZones[j]/alpha[cellI]) + (rho[cellI]*mag(U[cellI]))*fZones[j];

const scalar isoCd = tr(Cd);

Udiag[cellI] += V[cellI]*isoCd;
Usource[cellI] -= V[cellI]*((Cd - I*isoCd) & U[cellI]);"


Full files are attached.

When i compile this it gives me following error:


required from ‘Foam:orosityModel::addmeshConstructorToTable<po rosityModelType>::addmeshConstructorToTable(const Foam::word&) [with porosityModelType = Foam:orosityModels::fixedCoeff]’
cfdTools/general/porosityModel/fixedCoeff/fixedCoeff.C:37:9: required from here
/home/umer/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:76:66: error: invalid new-expression of abstract class type ‘Foam:orosityModels::fixedCoeff’
return autoPtr< baseType >(new baseType##Type parList); \
^


I am only changing DarcyForchheimer but somehow it is also linked with fixedCoeff model. Anyone tell me what is this problem and how can i resolve this?

Regards,
Umer
Attached Images
File Type: jpg error.JPG (141.1 KB, 30 views)
Attached Files
File Type: zip porosityModel.zip (44.3 KB, 21 views)
us7 is offline   Reply With Quote

Old   March 14, 2018, 00:18
Default
  #2
Senior Member
 
A CFD free user's Avatar
 
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14
A CFD free user is on a distinguished road
Hi Us7,
Have you managed to solve the problem by now?

Or in other way, is it possible to define relative permeability in interFoam with porous media?

Thanks,
__________________
Regard yours
A CFD free user is offline   Reply With Quote

Old   May 26, 2020, 15:15
Default
  #3
New Member
 
roshan
Join Date: Dec 2019
Posts: 10
Rep Power: 7
roshanak.rabiee878 is on a distinguished road
Hi
have you solved your problem?
roshanak.rabiee878 is offline   Reply With Quote

Old   August 6, 2020, 04:35
Default
  #4
New Member
 
Ma Jie
Join Date: Aug 2020
Posts: 7
Rep Power: 6
Major0412 is on a distinguished road
Quote:
Originally Posted by roshanak.rabiee878 View Post
Hi
have you solved your problem?
Hi! roshanak
I meet the same question, have you solved your problem?
thanks! Best wishes!
Major0412 is offline   Reply With Quote

Reply

Tags
darcy-forchheimer, darcyforchheimer, explicitporositysource, fvoptions


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
Can I use fvOptions to couple a solid region and a fluid region? titanchao OpenFOAM Running, Solving & CFD 4 January 14, 2022 08:55
fvOptions problem in TwoPhaseEulerFoam mshehata85 OpenFOAM Running, Solving & CFD 14 May 4, 2017 12:31
cellSet volume in fvOptions pablo_fil OpenFOAM Running, Solving & CFD 6 April 21, 2017 05:47
fvOptions MRF error vijaykamesh OpenFOAM 1 July 28, 2016 10:37
How to set fvOptions yurifrey OpenFOAM Pre-Processing 5 February 22, 2016 19:14


All times are GMT -4. The time now is 03:09.