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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 1, 2020, 13:09
Default Two phase flow in porous medium
  #1
New Member
 
Milad Alborzi
Join Date: Dec 2019
Posts: 7
Rep Power: 2
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, 04:25
Default
  #2
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 166
Rep Power: 8
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, 03:12
Default
  #3
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 297
Rep Power: 14
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, 11:06
Default
  #4
New Member
 
Milad Alborzi
Join Date: Dec 2019
Posts: 7
Rep Power: 2
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, 11:16
Default
  #5
New Member
 
Milad Alborzi
Join Date: Dec 2019
Posts: 7
Rep Power: 2
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, 08:58
Default
  #6
Member
 
abdikerim kurbanaliev
Join Date: Jun 2010
Location: Kyrgyzstan, Osh
Posts: 60
Rep Power: 11
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

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 22:34
How do model two phase granular flow in Porous media? bahman FLUENT 1 December 6, 2012 04:39
Porous Medium & Mass Flow Rate NewMY FLUENT 4 November 26, 2009 02:26
paralell flow to porous medium alvio CFX 0 November 13, 2008 09:21
Flow through porous medium Kiran AS Main CFD Forum 1 August 31, 2006 08:12


All times are GMT -4. The time now is 08:20.