Coder Social home page Coder Social logo

hassan-asghar-mma / twophaseflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tmaric/twophaseflow

0.0 0.0 0.0 3.38 MB

License: GNU General Public License v3.0

Shell 1.22% C++ 54.49% Python 5.18% C 38.50% MATLAB 0.20% HTML 0.11% GLSL 0.30%

twophaseflow's Introduction

twophaseflow

the TwoPhaseFlow Library adds new surface tension and phase change models to OpenFOAM and provides benchmark cases for verification

Documentation

The available models and solvers are documentated in:

https://arxiv.org/abs/2103.00870

Getting Started

Prerequisites

Requires OpenFOAM v1812:

https://www.openfoam.com/download/release-history.php

The branch of2106 works with of2106

Installing

    git clone https://github.com/DLR-RY/TwoPhaseFlow
    cd TwoPhaseFlow
    ./Allwmake
    ./get-gmsh.sh # will install gmsh version 306 as gmshv306
    # for AMR
    git submodule update --init --recursive
    cd modules/multiDimAMR/
    ./Allwmake

running testsuite

make sure that the desired openfoam installation is sourced e.g. v1812 and that python is installed with a version >= 3.6 (miniconda is a great option, but anaconda works as well)

    python -m venv env # creats virtual python enviroments (optional step)
    pip install oftest

    py.test # runs the tests
    py.test --writeNSteps=1 run/ # test all testcases in run

Authors

  • Henning Scheufler

adaptive mesh refinement with multiple regions

AMR with multiple regions does not work in version of1812 but it is fixed in newer versions.

To fix this apply the patch (assumes openfoam is already source):

    cp  patches/multiRegionAMR.patch $WM_PROJECT_DIR
    cp  patches/tableBase.patch $WM_PROJECT_DIR
    cp  patches/surfaceFieldValue.patch $WM_PROJECT_DIR
    cd $WM_PROJECT_DIR
    git apply multiRegionAMR.patch
    git apply tableBase.patch
    git apply surfaceFieldValue.patch

details see:

https://develop.openfoam.com/Development/openfoam/-/issues/1676

https://develop.openfoam.com/Development/openfoam/-/issues/1753

License

This project is licensed under the GPL v3 License - see the LICENSE.md file for details

running Benchmarks

    ./get-gmsh.sh # install gmsh
    pip install casefoam

The run/benchmark cases are run with

    cd run/benchmark/phaseChange/suckingInterface/
    python genCases.py # generates the study based and template case (here StefanProblem)
    ./Allrun # runs all the created testcases
    python getResults.py # to see results

Alternatively, the runAll.sh can be executed in the folder.

Note:

that some cases use the slurm queuing system and call sbatch Allrun_Slurm in the Allrun script, so you might need to modify it in the template case

twophaseflow's People

Contributors

henningscheufler avatar jgmess-dlr avatar zitzeronion avatar

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.