mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: volSurfaceMapping is const
This commit is contained in:
@ -1,3 +1,6 @@
|
|||||||
|
// Volume-to surface mapping object
|
||||||
|
const volSurfaceMapping vsm(aMesh);
|
||||||
|
|
||||||
volVectorField U
|
volVectorField U
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
@ -26,6 +29,3 @@ volScalarField H
|
|||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimLength, Zero)
|
dimensionedScalar(dimLength, Zero)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create volume-to surface mapping object
|
|
||||||
volSurfaceMapping vsm(aMesh);
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// Create volume-to surface mapping object
|
// Volume-to surface mapping object
|
||||||
volSurfaceMapping vsm(aMesh);
|
const volSurfaceMapping vsm(aMesh);
|
||||||
|
|
||||||
volScalarField Cvf
|
volScalarField Cvf
|
||||||
(
|
(
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// Create volume-to surface mapping object
|
// Volume-to surface mapping object
|
||||||
volSurfaceMapping vsm(aMesh);
|
const volSurfaceMapping vsm(aMesh);
|
||||||
|
|
||||||
volScalarField Cvf
|
volScalarField Cvf
|
||||||
(
|
(
|
||||||
|
|||||||
@ -305,7 +305,7 @@ void sensitivitySurface::smoothSensitivities()
|
|||||||
dimensionedScalar one("1", dimless, 1.);
|
dimensionedScalar one("1", dimless, 1.);
|
||||||
|
|
||||||
// Mapping engine
|
// Mapping engine
|
||||||
volSurfaceMapping vsm(aMesh);
|
const volSurfaceMapping vsm(aMesh);
|
||||||
|
|
||||||
// Source term in faMatrix needs to be an areaField
|
// Source term in faMatrix needs to be an areaField
|
||||||
areaScalarField sens
|
areaScalarField sens
|
||||||
|
|||||||
Reference in New Issue
Block a user