|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Umer
Join Date: Aug 2016
Posts: 29
Rep Power: 10 ![]() |
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: ![]() ![]() 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: ![]() 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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
roshan
Join Date: Dec 2019
Posts: 10
Rep Power: 6 ![]() |
Hi
have you solved your problem? |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Ma Jie
Join Date: Aug 2020
Posts: 7
Rep Power: 6 ![]() |
||
![]() |
![]() |
![]() |
Tags |
darcy-forchheimer, darcyforchheimer, explicitporositysource, fvoptions |
|
|
![]() |
||||
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 07:55 |
fvOptions problem in TwoPhaseEulerFoam | mshehata85 | OpenFOAM Running, Solving & CFD | 14 | May 4, 2017 11:31 |
cellSet volume in fvOptions | pablo_fil | OpenFOAM Running, Solving & CFD | 6 | April 21, 2017 04:47 |
fvOptions MRF error | vijaykamesh | OpenFOAM | 1 | July 28, 2016 09:37 |
How to set fvOptions | yurifrey | OpenFOAM Pre-Processing | 5 | February 22, 2016 18:14 |