@@ -64,24 +64,31 @@ Foam::tmp<Foam::volSymmTensorField> preciceAdapter::FSI::Force::devRhoReff() con
64
64
typedef incompressible ::turbulenceModel icoTurbModel ;
65
65
66
66
if (mesh_ .foundObject < cmpTurbModel > (cmpTurbModel ::propertiesName ))
67
- {
68
- const cmpTurbModel & turb =
69
- mesh_ .lookupObject < cmpTurbModel > (cmpTurbModel ::propertiesName );
70
-
67
+ {
68
+ const cmpTurbModel & turb
69
+ (
70
+ mesh_ .lookupObject < cmpTurbModel > (cmpTurbModel ::propertiesName )
71
+ );
72
+
71
73
return turb .devRhoReff ();
72
74
73
- }
75
+ }
74
76
else if (mesh_ .foundObject < icoTurbModel > (icoTurbModel ::propertiesName ))
75
- {
76
- const incompressible ::turbulenceModel & turb =
77
- mesh_ .lookupObject < icoTurbModel > (icoTurbModel ::propertiesName );
78
-
77
+ {
78
+ const incompressible ::turbulenceModel & turb
79
+ (
80
+ mesh_ .lookupObject < icoTurbModel > (icoTurbModel ::propertiesName )
81
+ );
82
+
79
83
return rho ()* turb .devReff ();
80
84
}
81
85
else
82
86
{
83
87
// For laminar flows get the velocity
84
- const volVectorField & U = mesh_ .lookupObject < volVectorField > ("U" );
88
+ const volVectorField & U
89
+ (
90
+ mesh_ .lookupObject < volVectorField > ("U" )
91
+ );
85
92
86
93
return - mu ()* dev (twoSymm (fvc ::grad (U )));
87
94
}
@@ -139,8 +146,10 @@ Foam::tmp<Foam::volScalarField> preciceAdapter::FSI::Force::mu() const
139
146
typedef immiscibleIncompressibleTwoPhaseMixture iitpMixture ;
140
147
if (mesh_ .foundObject < iitpMixture > ("mixture" ))
141
148
{
142
- const iitpMixture & mixture =
143
- mesh_ .lookupObject < iitpMixture > ("mixture" );
149
+ const iitpMixture & mixture
150
+ (
151
+ mesh_ .lookupObject < iitpMixture > ("mixture" )
152
+ );
144
153
145
154
return mixture .mu ();
146
155
}
@@ -181,23 +190,29 @@ void preciceAdapter::FSI::Force::write(double * buffer, bool meshConnectivity, c
181
190
// Compute forces. See the Forces function object.
182
191
183
192
// Normal vectors on the boundary, multiplied with the face areas
184
- const surfaceVectorField ::Boundary & Sfb =
185
- mesh_ .Sf ().boundaryField ();
193
+ const surfaceVectorField ::Boundary & Sfb
194
+ (
195
+ mesh_ .Sf ().boundaryField ()
196
+ );
186
197
187
198
// Stress tensor boundary field
188
- tmp < volSymmTensorField > tdevRhoReff = devRhoReff ();
189
- const volSymmTensorField ::Boundary & devRhoReffb =
190
- tdevRhoReff ().boundaryField ();
199
+ tmp < volSymmTensorField > tdevRhoReff (devRhoReff ());
200
+ const volSymmTensorField ::Boundary & devRhoReffb
201
+ (
202
+ tdevRhoReff ().boundaryField ()
203
+ );
191
204
192
205
// Density boundary field
193
- tmp < volScalarField > trho = rho ();
206
+ tmp < volScalarField > trho ( rho () );
194
207
const volScalarField ::Boundary & rhob =
195
208
trho ().boundaryField ();
196
209
197
210
// Pressure boundary field
198
211
tmp < volScalarField > tp = mesh_ .lookupObject < volScalarField > ("p" );
199
- const volScalarField ::Boundary & pb =
200
- tp ().boundaryField ();
212
+ const volScalarField ::Boundary & pb
213
+ (
214
+ tp ().boundaryField ()
215
+ );
201
216
202
217
int bufferIndex = 0 ;
203
218
// For every boundary patch of the interface
0 commit comments