Giter VIP home page Giter VIP logo

radcalnet.jl's Introduction

RadCalNet

Build Status Coverage

Radiation properties machine learning model trained on RadCal.

About

In this project we use the re-implementation of RadCal to generate data and train a machine learning model for the prediction of radiative properties, i.e. emissivity and transmissivity, of common combustion flue gases. This is done because for real-time calls required, for instance, in CFD applications, use of RADCAL directly might be computationally prohibitive. Thus, a neural network is trained with Tensorflow based on the simulated data and then transformed into C-code that can be called from external programs (Fluent, OpenFOAM, ...). All relevant parameters required by the model are commited in this directory.

For details of validity ranges and sample space, please check function datasampler! at database.jl, where random sampling is provided. Indexing of species array is documented at runradcalinput in module RadCalNet.Database.

Below we display the quality of fitting of model. One must notice that fitting of emissivity still needs a few adjustments, while transmissivity is well predicted over the whole range.

Model testing

Usage

The following snippet illustrates everything the model was designed to do, so don't loose your time looking for a documentation page: simply load the model and compute the required properties.

import RadCalNet

x = Float32[1200.0; 1000.0; 2.0; 1.0; 0.1; 0.2; 0.1]
y = RadCalNet.model(x)

The array of inputs x is defined below, and y provides gas emissitivy and transmissivity, respectively. Notice that x must be a column vector with entries of type Float32.

Index Quantity Units Minimum Maximum
1 Wall temperature K 300 2500
2 Gas temperature K 300 2500
3 Depth m 0.1 3.0
4 Pressure atm 0.5 1.5
5 CO2 mole fraction - 0.0 0.25
6 H2O mole fraction - 0.0 0.30
7 CO mole fraction - 0.0 0.20

To-do's

  • Broaden sample space over the whole RadCal composition spectrum.
  • Define data loading on GPU/CPU though a flag when recovering model.
  • Make Float64 interface and/or compatibility.
  • Create database for testing outside of sampling points.

radcalnet.jl's People

Contributors

wallytutor avatar

Watchers

 avatar

radcalnet.jl's Issues

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.