MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
rheologyFields.H
Go to the documentation of this file.
1 
18 IOdictionary rheologyProperties
20 (
21  IOobject
22  (
23  "rheologyProperties",
24  runTime.constant(),
25  mesh,
26  IOobject::MUST_READ,
27  IOobject::NO_WRITE
28  )
29 );
30 
31 word viscosityModel(rheologyProperties.lookup("viscosityModel"));
32 
33 if
34 (
35  !(viscosityModel == "constant"
36  || viscosityModel == "castro-macosko"
37  || viscosityModel == "bird-carreau"
38  || viscosityModel == "MoDeNaRheology")
39 )
40 {
41  FatalErrorIn(args.executable())
42  << "Invalid viscosity model " << viscosityModel
43  << "\nValid viscosity models are: "
44  << "\nconstant,"
45  << "\ncastro-macosko,"
46  << "\nbird-carreau,"
47  << "\nMoDeNaRheology"
48  << exit(FatalError);
49 }
50 
51 volScalarField muFoam
52 (
53  IOobject
54  (
55  "muFoam",
56  runTime.timeName(),
57  mesh,
58  IOobject::READ_IF_PRESENT,
59  IOobject::AUTO_WRITE
60  ),
61  mesh,
62  dimensionedScalar("muFoam", dimensionSet(1,-1,-1,0,0,0,0), 1e-5)
63  );
64 volScalarField muAir
65 (
66  IOobject
67  (
68  "muAir",
69  runTime.timeName(),
70  mesh,
71  IOobject::READ_IF_PRESENT,
72  IOobject::AUTO_WRITE
73  ),
74  mesh,
75  dimensionedScalar("muAir", dimensionSet(1,-1,-1,0,0,0,0), 1e-5)
76  );
77 volScalarField muMixture
78 (
79  IOobject
80  (
81  "muMixture",
82  runTime.timeName(),
83  mesh,
84  IOobject::READ_IF_PRESENT,
85  IOobject::AUTO_WRITE
86  ),
87  mesh,
88  dimensionedScalar("muMixture", dimensionSet(1,-1,-1,0,0,0,0), 1e-5)
89  );
90 
91 volScalarField XNCO
92 (
93  IOobject
94  (
95  "XNCO",
96  runTime.timeName(),
97  mesh,
98  IOobject::MUST_READ,
99  IOobject::AUTO_WRITE
100  ),
101  mesh
102 );
103 volScalarField mu0
104 (
105  IOobject
106  (
107  "mu0",
108  runTime.timeName(),
109  mesh,
110  IOobject::READ_IF_PRESENT,
111  IOobject::AUTO_WRITE
112  ),
113  mesh,
114  dimensionedScalar("mu0", dimensionSet(1,-1,-1,0,0,0,0), 1e-5)
115 );
116 volScalarField muinf
117 (
118  IOobject
119  (
120  "muinf",
121  runTime.timeName(),
122  mesh,
123  IOobject::READ_IF_PRESENT,
124  IOobject::AUTO_WRITE
125  ),
126  mesh,
127  dimensionedScalar("muinf", dimensionSet(1,-1,-1,0,0,0,0), 1e-5)
128 );
129 volScalarField muFoamCorr
130 (
131  IOobject
132  (
133  "muFoamCorr",
134  runTime.timeName(),
135  mesh,
136  IOobject::READ_IF_PRESENT,
137  IOobject::AUTO_WRITE
138  ),
139  mesh,
140  dimensionedScalar("muFoamCorr", dimensionSet(1,-1,-1,0,0,0,0), 1e-5)
141 );
142 ///@endcond