MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
gasMixtureConductivity.gasMixtureConductivity Namespace Reference

Surrogate function and model definitions for thermal conductivity of mixture of blowing agents. More...

Variables

string weightedAverageCode
 simple weighted average More...
 
string dohrnCode
 Dohrn model. More...
 
string lindsayBromleyCode
 Lindsay-Bromley model. More...
 
 f_gasMixtureConductivity
 Surrogate function for thermal conductivity of blowing agents. More...
 
 m_gasMixtureConductivity
 Surrogate model for thermal conductivity of mixture of blowing agents. More...
 

Detailed Description

Surrogate function and model definitions for thermal conductivity of mixture of blowing agents.

Author
Pavel Ferkl

Variable Documentation

◆ dohrnCode

string gasMixtureConductivity.gasMixtureConductivity.dohrnCode

Dohrn model.

see link

Definition at line 77 of file gasMixtureConductivity.py.

◆ f_gasMixtureConductivity

gasMixtureConductivity.gasMixtureConductivity.f_gasMixtureConductivity
Initial value:
1 = CFunction(
2  Ccode=dohrnCode,
3  # These are global bounds for the function
4  inputs={
5  'T': {'min': 273, 'max': 550},
6  'x': {'index': gasConductivity.species, 'min': 0, 'max': 1},
7  'gas_thermal_conductivity': {'index': gasConductivity.species,
8  'min': 0, 'max': 1},
9  },
10  outputs={
11  'gasMixtureConductivity': {'min': 0, 'max': +9e99, 'argPos': 0},
12  },
13  parameters={
14  'param0': {'min': -9e99, 'max': +9e99, 'argPos': 0},
15  'param1': {'min': -9e99, 'max': +9e99, 'argPos': 1},
16  'param2': {'min': -9e99, 'max': +9e99, 'argPos': 2},
17  },
18 )

Surrogate function for thermal conductivity of blowing agents.

Thermal conductivity of blowing agents is a function of temperature.

Definition at line 196 of file gasMixtureConductivity.py.

◆ lindsayBromleyCode

string gasMixtureConductivity.gasMixtureConductivity.lindsayBromleyCode

Lindsay-Bromley model.

see link

Definition at line 131 of file gasMixtureConductivity.py.

◆ m_gasMixtureConductivity

gasMixtureConductivity.gasMixtureConductivity.m_gasMixtureConductivity
Initial value:
1 = ForwardMappingModel(
2  _id='gasMixtureConductivity',
3  surrogateFunction=f_gasMixtureConductivity,
4  substituteModels=[gasConductivity.m_CO2_thermal_conductivity,\
5  gasConductivity.m_CyP_thermal_conductivity,\
6  gasConductivity.m_O2_thermal_conductivity,\
7  gasConductivity.m_N2_thermal_conductivity],
8  parameters=[1, 1, 1],
9 )

Surrogate model for thermal conductivity of mixture of blowing agents.

Forward mapping model is used.

Definition at line 218 of file gasMixtureConductivity.py.

◆ weightedAverageCode

string gasMixtureConductivity.gasMixtureConductivity.weightedAverageCode
Initial value:
1 = r'''
2 #include "modena.h"
3 #include "math.h"
4 #include "stdio.h"
5 
6 void gasMixtureConductivity
7 (
8  const modena_model_t* model,
9  const double* inputs,
10  double *outputs
11 )
12 {
13  {% block variables %}{% endblock %}
14 
15  double kgasmix=0; // gas mixture conductivity
16  double sumx=0;
17  int i;
18  for (i=0;i<x_size;i++) {
19  sumx = sumx + x[i];
20  }
21  for (i=0;i<x_size;i++) {
22  kgasmix = kgasmix + gas_thermal_conductivity[i]*x[i]/sumx;
23  }
24  outputs[0] = kgasmix;
25 }
26 '''

simple weighted average

Definition at line 48 of file gasMixtureConductivity.py.