GithubHelp home page GithubHelp logo

zaibinlin / airvelocityattenuation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicolasbadano/airvelocityattenuation

0.0 0.0 0.0 0 B

This project implements a sink term applicable to the momentum conservation equation of the multiphase OpenFOAM solvers (interFoam, interIsoFoam), which attenuates velocities in the air phase.

License: MIT License

airvelocityattenuation's Introduction

airVelocityAttenuation

This project implements a sink term applicable to the momentum conservation equation of the multiphase OpenFOAM solvers (interFoam, interIsoFoam), which attenuates velocities in the air phase.

Description

The sink term has the following expression:

$$ \frac{\partial \rho U}{\partial t}+\nabla \cdot \left( \rho U \otimes U \right) -\nabla \cdot \left(2 \rho \nu D \right) + \nabla R_d = -\nabla p + \rho g + \sigma \kappa \nabla \alpha - A_r \rho U f(\alpha) $$

where $A_r$ is the attenuation rate (1/s) and $f$ is a function which has a value of zero in the water fraction, and one in the air fraction:

$$ f(\alpha) = \max(\min(\frac{\alpha_t - \alpha}{\alpha_t}, 1), 0) $$

with $\alpha_t$ being the alpha threshold, bellow which the attenuation is applied.

Getting Started

  • Just copy the fvOption file into the constant folder of your simulation.
  • The attenuation rate and alpha threshold con be easily changed in the source code.

Example results

example

Warning

  • Always ensure that the sink term doesn't affect the problem solution.
  • Artifially limiting the air velocity can lead to increased velocity gradients near the free surface, and hence additional turbulence production in that region.

License

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

Author

Nicolás Diego Badano (https://www.linkedin.com/in/nicolas-diego-badano/)

airvelocityattenuation's People

Contributors

nicolasbadano 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.