Giter Site home page Giter Site logo

icoreactingmultiphaseinterfoamt's Introduction

OpenFOAM-and-Thermochimica-Coupling

A numerical coupling between OpenFOAM as a CFD tool and Thermochimica as a CT tool

Install OpenFOAM v2106

Before compiling this code, please install Thermochimica following instructios from https://nuclear.ontariotechu.ca/piro/thermochimica/getting-started.php

  sudo apt-get install gfortran
  
  sudo apt install libblas-dev liblapack-dev
  
  git clone https://github.com/ORNL-CEES/thermochimica
  
  Make

To compile the coupling solver do the following:

*I suggest to rename the folder to OFCT instead of icoReactingMultiphaseInterFoamT, this name is too long and will result in errors

  • Modify location of libthermoc.a and libthermochimica.a libraries in file "options" inside folder "Make".

*Change ThermochimicaCalc.H according to your own chemistry calculation (1st line)

*You will have to call and store values from Thermochimica to separate vectors and double variables (as you may see) to your case, and create specific fields in createXXXXXXThermochimicaFields.

*Try to be as more organized as you can. I separated everything into gaseous and solidus folders, because this same solver can be used for solidification/melting and evaporation/condensation phenomena.

*Call phases in ThermochimicaCalc.H "like char phaseName1[25] = "solid1"; for solid1 phase. The name under "" should match the exact name in the database.dat

*Rename adress for the database in

ThermochimicaCalc.H "const char filename[120] = "/home/username/Documents/OFTC/thermochimica/data/nameOfTheDatabase.dat";"

After it, compile the OF solver:

openfoam2106

wclean

wmake

Enjoy

icoreactingmultiphaseinterfoamt's People

Contributors

nikolasscuro avatar

Stargazers

zhang zhiguo 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.