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

Two phase flow in porous medium

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 1, 2020, 14:09
Default Two phase flow in porous medium
  #1
New Member
 
Milad Alborzi
Join Date: Dec 2019
Posts: 7
Rep Power: 7
Milaad is on a distinguished road
Hi
i am new at working with OpenFOAM, and i want to Simulate a 2D two phase flow in a porous medium.
I can't find a solver for this case.Which solver should I use?
I'm using a windows version of OpenFOAM.
Can anyone help me?
Milaad is offline   Reply With Quote

Old   January 2, 2020, 05:25
Default
  #2
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
Quote:
Originally Posted by Milaad View Post
Hi
i am new at working with OpenFOAM, and i want to Simulate a 2D two phase flow in a porous medium.
I can't find a solver for this case.Which solver should I use?
I'm using a windows version of OpenFOAM.
Can anyone help me?

Use twophaseEulerFoam
harsha_kulkarni is offline   Reply With Quote

Old   January 7, 2020, 04:12
Default
  #3
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Use porousMultiphaseFoam https://github.com/phorgue/porousMultiphaseFoam

It solves multiphase Darcy's law with relative permeability and capillary pressure.

Cheers,
Cyprien
Cyp is offline   Reply With Quote

Old   January 18, 2020, 12:06
Default
  #4
New Member
 
Milad Alborzi
Join Date: Dec 2019
Posts: 7
Rep Power: 7
Milaad is on a distinguished road
Quote:
Originally Posted by harsha_kulkarni View Post
Use twophaseEulerFoam
thank you
i have an other question!
how can i add properties of porous media?
Milaad is offline   Reply With Quote

Old   January 18, 2020, 12:16
Default
  #5
New Member
 
Milad Alborzi
Join Date: Dec 2019
Posts: 7
Rep Power: 7
Milaad is on a distinguished road
Quote:
Originally Posted by Cyp View Post
Use porousMultiphaseFoam https://github.com/phorgue/porousMultiphaseFoam

It solves multiphase Darcy's law with relative permeability and capillary pressure.

Cheers,
Cyprien
thanks for your helping
i downloaded and extracted the file. i followed the README and i used "./Allwmake" in order to install the solver but i faced this:
-------------------------------------------------------------------------------------------------------------

+ wmake libraries/numericalMethods
wmake libraries/numericalMethods
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/libraries/numericalMethods
+ wmake libraries/porousModels
wmake libraries/porousModels
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/libraries/porousModels
+ wmake libraries/toolsGIS
wmake libraries/toolsGIS
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/libraries/toolsGIS
+ wmake libraries/porousBoundaryConditions
wmake libraries/porousBoundaryConditions
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/libraries/porousBoundaryConditions
+ wmake solvers/impesFoam
wmake solvers/impesFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/impesFoam
+ wmake solvers/anisoImpesFoam
wmake solvers/anisoImpesFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/anisoImpesFoam
+ wmake solvers/groundwaterFoam
wmake solvers/groundwaterFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/groundwaterFoam
+ wmake solvers/porousScalarTransportFoam
wmake solvers/porousScalarTransportFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/porousScalarTransportFoam
+ wmake solvers/porousScalarTransport2DFoam
wmake solvers/porousScalarTransport2DFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/porousScalarTransport2DFoam
+ wmake solvers/groundwater2DFoam
wmake solvers/groundwater2DFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/groundwater2DFoam
+ wmake solvers/groundwaterTransport2DFoam
wmake solvers/groundwaterTransport2DFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/groundwaterTransport2DFoam
+ wmake solvers/groundwaterTransportFoam
wmake solvers/groundwaterTransportFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/groundwaterTransportFoam
+ wmake solvers/stationaryGroundwater2DFoam
wmake solvers/stationaryGroundwater2DFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/stationaryGroundwater2DFoam
+ wmake solvers/stationaryGroundwaterFoam
wmake solvers/stationaryGroundwaterFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/solvers/stationaryGroundwaterFoam
+ wmake utilities/darcyFoam
wmake utilities/darcyFoam
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/utilities/darcyFoam
+ wmake utilities/setBoundaryHeadPressure
wmake utilities/setBoundaryHeadPressure
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/utilities/setBoundaryHeadPressure
+ wmake utilities/setFieldsFromXY
wmake utilities/setFieldsFromXY
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoam-openFoam-v7/utilities/setFieldsFromXY
+ wmake utilities/setFieldsFromMNT
wmake utilities/setFieldsFromMNT
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 456: make: command not found
/opt/OpenFOAM/OpenFOAM-v1906/wmake/wmake: line 459: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /mnt/c/users/M.Alborzi/tutorial/porousMultiphaseFoam-openFoam-v7/porousMultiphaseFoa

-------------------------------------------------------------------------------------------------------------

there seems to be a problem.
i am using a windows version of OpenFoam, is the error because of my OpenFoam?
what should i do now?
i will be gratefull if you help me again.
Milaad is offline   Reply With Quote

Old   May 18, 2020, 09:58
Default
  #6
Senior Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 121
Rep Power: 16
kerim is on a distinguished road
Quote:
Originally Posted by Cyp View Post
Use porousMultiphaseFoam https://github.com/phorgue/porousMultiphaseFoam

It solves multiphase Darcy's law with relative permeability and capillary pressure.

Cheers,
Cyprien
Dear Cyprien,


Thank you very much for sharing. It works well. I am using openFOAM 7 on Ubuntu 16.04.6 LTS.
Cheers,
Kerim
kerim is offline   Reply With Quote

Old   December 15, 2020, 08:55
Default
  #7
Member
 
...
Join Date: May 2018
Posts: 37
Rep Power: 8
regard is on a distinguished road
hi all

i want to simulate the boiling flow in porous media- and i need to add Capillary pressure and relative permeability, Is there anyone who has experience in modeling boiling in a porous medium?
regard is offline   Reply With Quote

Old   July 1, 2024, 06:08
Default
  #8
New Member
 
Goind Sharma
Join Date: Sep 2018
Posts: 25
Rep Power: 8
govind_IITD is on a distinguished road
Hi Regard,


I am working on same type of problem. Did you find a solution or approach that can be shared?




Regards
Govind
govind_IITD 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
rhoPorousSimpleFoam for modeling porous medium adiabatic flow zhzhguo OpenFOAM Programming & Development 0 August 17, 2014 23:34
How do model two phase granular flow in Porous media? bahman FLUENT 1 December 6, 2012 05:39
Porous Medium & Mass Flow Rate NewMY FLUENT 4 November 26, 2009 03:26
paralell flow to porous medium alvio CFX 0 November 13, 2008 10:21
Flow through porous medium Kiran AS Main CFD Forum 1 August 31, 2006 09:12


All times are GMT -4. The time now is 11:54.