GithubHelp home page GithubHelp logo

franjcf / hybridporousinterfoam Goto Github PK

View Code? Open in Web Editor NEW
92.0 92.0 36.0 80.02 MB

OpenFOAM solver for performing single- and two-phase flow simulations on hybrid-scale porous media.

License: GNU General Public License v3.0

Shell 0.09% C 1.48% C++ 98.34% Python 0.08%
capillary-pressure cfd coastal-engineering fractures micro-ct multiphase openfoam porous-media porous-media-flow relative-permeability

hybridporousinterfoam's Introduction

Hi there, I'm Francisco - aka Franjcf 👋

Website

I'm a Husband, Father, Programmer, and Teacher!

  • 🔭 I just launched a first-of-its-kind simulation codebase that can be used to solve multiphase flow in deformable porous media at multiple length scales.
  • 🌱 I am currently learning about transformers and neural networks.
  • 🥅 Goals for 2021: I want to be a part of more open-source projects.
  • 👯 Please reach out if you want to collaborate!
  • ⚡ Fun fact: I love playing basketball and reading about historical figures.

Languages and Tools:

Python

C++

TensorFlow

Scikit-Learn

Matlab

SQL

Git

GitHub

Terminal



📕 Latest Projects

Connect with me:

codeSTACKr | LinkedIn Email



hybridporousinterfoam's People

Contributors

franjcf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hybridporousinterfoam's Issues

Questions about viscous terms

Dear authors:

Hello and thank you for providing such an excellent open source toolkit! I learned a lot from this kit.

I have a question about the code in the toolkit (using OpenFoam version V8), and there is a piece of code in the UEqn.H file

fvVectorMatrix UEqn
(
(1./eps)(fvm::ddt(rho, U) + fvm::div(rhoPhiByEps, U) + MRF.DDt(rho, U))
+ (1./eps)
(turbulence->divDevTau(rho, U)) // Why is it multiplied by 1/eps?
+ fvm::Sp(Drag,U)
==
fvOptions(rho, U)
);

This code is a finite volume discrete assembly of the macroscopic momentum equation multiplied by a system of linear algebraic equations, which I think is the corresponding equation (refer to the formula (21) in the paper “Multiphase flow modeling in multiscale porous media:An open-source micro-continuum approach”).

$\frac{1}{\phi}(\frac{\partial \rho\bar{\pmb{v}}}{\partial t} + \nabla\cdot(\frac{\rho}{\phi}\bar{\pmb{v}}\bar{\pmb{v}})) = -\nabla\bar{p} + \rho\pmb{g} + \nabla\cdot\bar{S} - \mu k^{-1}\bar{\pmb{v}} + \pmb{F}_c$

One of the things I am confused about is why the viscous term $\nabla\cdot\bar{S}$ is multiplied by 1/eps in the code (shown below), because the equation (21) does not multiply this coefficient, is there any key information I am missing?
(1./eps)*(turbulence->divDevTau(rho, U))

I am looking forward to your reply and best wishes : )

gravity in porous media

Hello, I found that the gravity setting is only effective when eps is 0.999, but not in porous media. I would like to know how to consider gravity in porous media, thank you

issue compiling librairies

Hello,

I am using Windows 10, Ubuntu 20.04 LTS, OpenFoamV7 and Paraview 5.9.1.
I get errors when compiling the librairies with command "./Allwmake" :
Error

Have you ever encountered this problem?

Regards.

Segmentation fault (core dumped) - OF7

Problem Description: Error in hybridPorousInterFoam solver itself.

To reproduce issue: Enter the command hybridPorousInterFoam in any of the tutorial case or anywhere.

Build: 7-1ff648926f77
OS: WSL2-Ubuntu 18.04

No running in OF7 and OF8

Dear Francisco Carrillo:
thanks a lot for developing these new solvers for OpenFoam. For soil simulations I would be much interested to use them.
(Linux Ubuntu LTS 20.04)
With compiling everything went well in my OF7 and OF8 version, which I have both installed and source independently.
As well in OF7 (in OF8 I did not try) your python-script works well and gives OK to all tutorial cases.
Nevertheless neither in OF 8 nor in OF 7 running of the solvers functions.
OF8 error message:
gidadmin@vgeodatenkiste:~/OpenFOAM/hybridPorousInterFoam-master/tutorials/Example_Applications/Coastal_Barrier/coastal_Barrier$ hybridPorousInterFoam

--> FOAM FATAL IO ERROR:
keyword is undefined in dictionary "/opt/openfoam8/etc/controlDict/DimensionedConstants/SICoeffs/universal"

file: /opt/openfoam8/etc/controlDict/DimensionedConstants/SICoeffs/universal from line 922 to line 924.

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 797.

FOAM exiting

double free or corruption (!prev)
Abgebrochen (Speicherabzug geschrieben)

OF7 error message:
Segmentation fault /core dump
free(): invalid pointer

For OF8 I looked up the files of the error message, but could not get any idea, what to do.
Help or hints by you would be much appriciated!

Johannes Merklein

EXE = $(FOAM_APPBIN)/SRFPimpleFoam OF8

Problem Solution: Error resolved by correcting title command to EXE = $(FOAM_USER_APPBIN)/SRFPimpleFoam in OpenFoamV8/HybridPorousPimpleFoam/SRFPimpleFoam/Make/files

To reproduce issue: Enter the command hybridPorousInterFoam in any of the tutorial case or anywhere.

Build: 8-9b73cf21a682
OS: WSL1-Ubuntu 18.04

Support for OpenFoam9

Dear authors,

Thanks for providing this toolkit. I was planning to use it for my simulations cases, but realized the repository comes only with the source codes for OpenFoam7 and 8. Is it planned to expand to OpenFoam9 or would you recommend that I downgrade to OpenFoam8?

Thanks for any suggestions!

setting pressure in tutorial

Dear Franjct,
I see your setting in tutorial for pressure. Why you chosen the compressible for your simulation. Is it can run with incompressible flow?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.