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

Surrogate Function, Surrogate Model templates and Model Recipe. More...

Data Structures

class  MechanicalPropertiesExactSim
 

Variables

 MODULE_DIR = dirname(abspath(__file__))
 
 EXECUTION_DIR = getcwd()
 
 TEMPLATE_FoamElasticModulus
 
 f_backward
 
 f_ludwigshafen
 
 m_forward
 
 m_backward
 

Detailed Description

Surrogate Function, Surrogate Model templates and Model Recipe.

Author

Detailed

description

of

the

module

Variable Documentation

◆ f_backward

FoamElasticModulus.ElasticModulus.f_backward
Initial value:
1 = CFunction(
2  Ccode= ,
3  # These are global bounds for the function
4  inputs={
5  'rho': { 'min': 0, 'max': 1e5},
6  'strut_content': { 'min': 0, 'max': 1e5},
7  'Mu': { 'min': 0, 'max': 1e5},
8  'Sigma': { 'min': 0, 'max': 1e5},
9  },
10  outputs={
11  'E': { 'min': 9e99, 'max': -9e99, 'argPos': 0 },
12  },
13  parameters={
14  'C1': { 'min': 0.0, 'max': 10.0, 'argPos': 0 },
15  'C2': { 'min': 0.0, 'max': 10.0, 'argPos': 1 },
16  },
17 )

Definition at line 101 of file ElasticModulus.py.

◆ f_ludwigshafen

FoamElasticModulus.ElasticModulus.f_ludwigshafen
Initial value:
1 = CFunction(
2  Ccode=,
3  # These are global bounds for the function
4  inputs={
5  'rho': { 'min': 0, 'max': 1e5},
6  'strut_content': { 'min': 0, 'max': 1e5},
7  'Mu': { 'min': 0, 'max': 1e5},
8  'Sigma': { 'min': 0, 'max': 1e5},
9  },
10  outputs={
11  'E': { 'min': 0, 'max': 1, 'argPos': 0 },
12  },
13  parameters={
14  'C1': { 'min': -9e99, 'max': +9e99, 'argPos': 0 },
15  'C2': { 'min': -9e99, 'max': +9e99, 'argPos': 1 },
16  },
17 )

Definition at line 142 of file ElasticModulus.py.

◆ m_backward

FoamElasticModulus.ElasticModulus.m_backward
Initial value:
1 = BackwardMappingModel(
2  _id= 'FoamElasticModulus_TEST',
3  surrogateFunction= f_backward,
4  exactTask=MechanicalPropertiesExactSim(),
5  substituteModels= [],
6  initialisationStrategy= Strategy.InitialData(
7  initialData={
8  'rho': [30.2,60,120,240,30.2,60,120,240,30.2,30.2,30.2,30.2,30.2,30.2,30.2],
9  'strut_content': [0.4,0.4,0.4,0.4,0.8,0.8,0.8,0.8,0.85,0.85,0.85,0.85,0.85,0.85,0.85],
10  'Mu': [0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39,0.39],
11  'Sigma': [0.15,0.15,0.15,0.15,0.15,0.15,0.15,0.15,0.01,0.05,0.1,0.15,0.2,0.25,0.30],
12  'E': [8.16,22.85,52.89,124.73,6.53,13.06,30.36,65.63,4.97,5.48,5.42,4.52,4.61,4.42,4.79],
13  }
14  ),
15  outOfBoundsStrategy= Strategy.ExtendSpaceStochasticSampling(
16  nNewPoints= 4
17  ),
18  parameterFittingStrategy= Strategy.NonLinFitWithErrorContol(
19  testDataPercentage= 0.2,
20  maxError= 9e99,
21  improveErrorStrategy= Strategy.StochasticSampling(
22  nNewPoints= 2
23  ),
24  maxIterations= 5 # Currently not used
25  ),
26 )

Definition at line 189 of file ElasticModulus.py.

◆ m_forward

FoamElasticModulus.ElasticModulus.m_forward
Initial value:
1 = ForwardMappingModel(
2  _id='FoamElasticModulus',
3  surrogateFunction=f_ludwigshafen,
4  substituteModels= [ ],
5  parameters=[0, 1],# TODO: Use real values from Ludwigshafen presentation
6 )

Definition at line 181 of file ElasticModulus.py.

◆ TEMPLATE_FoamElasticModulus

FoamElasticModulus.ElasticModulus.TEMPLATE_FoamElasticModulus
Initial value:
1 = Template(\
2 , trim_blocks=True, lstrip_blocks=True)

Definition at line 64 of file ElasticModulus.py.