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

Backward mapping FireTask for rheology model. More...

Data Structures

class  RheologyExactTask_dummy
 A FireTask that starts a microscopic code and updates the database. More...
 
class  RheologyExactTask_tFEM
 A FireTask that starts a microscopic code and updates the database. More...
 

Functions

def link_files (src, dst)
 Function symlinking all files and directories from directory "src" sto the directory "dst".
 

Variables

 MODULE_DIR = dirname(abspath(__file__))
 
 EXECUTION_DIR = getcwd()
 
 inputs = json.load(jsonfile)
 
 X_gel = inputs['kinetics']['gelPoint']
 
 f_dummy
 
 f_tFEM
 
 m
 

Detailed Description

Backward mapping FireTask for rheology model.

Author
Christos Mitrias

Variable Documentation

◆ f_dummy

Rheology.Rheology.f_dummy
Initial value:
1 = CFunction(
2  Ccode= +str(X_gel)+,
3  # These are global bounds for the function
4  inputs={
5  'T': {'min': 0, 'max': 550 },
6  'shear': {'min': 0, 'max': 9e99 },
7  'X': {'min': 0, 'max': 1 },
8  'm0': {'min': 0, 'max': 9e99 },
9  'm1': {'min': 0, 'max': 9e99 },
10  'mu': {'min': 0, 'max': 1000 },
11  'ST': {'min': 0, 'max': 100 },
12  },
13  outputs={
14  'mu_car': { 'min': 0, 'max': 9e99, 'argPos': 0 },
15  },
16  parameters={
17  'lamdba': { 'min': 1.35, 'max': 21.35, 'argPos': 0 },
18  'alpha': { 'min': 0, 'max': 2, 'argPos': 1 },
19  'n_rh': { 'min': 0, 'max': 2, 'argPos': 2 },
20  },
21 )

Definition at line 153 of file Rheology.py.

◆ f_tFEM

Rheology.Rheology.f_tFEM
Initial value:
1 = CFunction(
2  Ccode= ,
3  # These are global bounds for the function
4  inputs={
5  'T': {'min': 0, 'max': 550 },
6  'shear': {'min': 0, 'max': 9e99 },
7  'X': {'min': 0, 'max': 1 },
8  'm0' : {'min': 0, 'max' : 9e99},
9  'm1' : {'min': 0, 'max' : 9e99},
10  'mu': {'min': 0, 'max': 1000 },
11  'ST': {'min': 0, 'max': 100 },
12  },
13  outputs={
14  'mu_car': { 'min': 0, 'max': 9e99, 'argPos': 0 },
15  },
16  parameters={
17  'lamdba': { 'min': 1.35, 'max': 21.35, 'argPos': 0 },
18  'alpha': { 'min': 0, 'max': 2, 'argPos': 1 },
19  'n_rh': { 'min': 0, 'max': 2, 'argPos': 2 },
20  },
21 )

Definition at line 302 of file Rheology.py.

◆ m

Rheology.Rheology.m
Initial value:
1 = BackwardMappingModel(
2  _id= 'Rheology',
3  surrogateFunction= f_dummy,
4  exactTask= RheologyExactTask_dummy(),
5 # surrogateFunction= f_tFEM,
6 # exactTask= RheologyExactTask_tFEM(),
7  substituteModels= [ polymerViscosity.m_polymerViscosity, SurfaceTension.m],
8  initialisationStrategy= Strategy.InitialPoints(
9  initialPoints=
10  {
11  'T': [270.0, 330.0],
12  'shear': [0, 10000],
13  'X': [0, 0.3],
14  'm0': [ 2.5e10, 1.1e10],
15  'm1': [ 0.1, 0.1],
16  },
17  ),
18  outOfBoundsStrategy= Strategy.ExtendSpaceStochasticSampling(
19  nNewPoints= 4
20  ),
21  parameterFittingStrategy= Strategy.NonLinFitWithErrorContol(
22  testDataPercentage= 0.2,
23  maxError= 0.5,
24  improveErrorStrategy= Strategy.StochasticSampling(
25  nNewPoints= 2
26  ),
27  maxIterations= 5 # Currently not used
28  ),
29 )

Definition at line 369 of file Rheology.py.