Commit 762a2028 authored by mattijs's avatar mattijs
Browse files

BUG: snappyHexMesh: assing to boundaryField. Fixes #260.

parent ad1e7982
......@@ -126,7 +126,7 @@ public:
// Constructors
//- Construct from normal vector through the origin
plane(const vector& normalVector);
explicit plane(const vector& normalVector);
//- Construct from normal vector and point in plane
plane
......@@ -137,17 +137,17 @@ public:
);
//- Construct from three points in plane
plane(const point& point1, const point& point2, const point& point3);
plane(const point&, const point&, const point&);
//- Construct from coefficients for the
// plane equation: ax + by + cz + d = 0
plane(const scalarList& C);
explicit plane(const scalarList& C);
//- Construct from dictionary
plane(const dictionary& planeDict);
explicit plane(const dictionary& planeDict);
//- Construct from Istream. Assumes the base + normal notation.
plane(Istream& is);
explicit plane(Istream& is);
// Member Functions
......
......@@ -2814,6 +2814,7 @@ bool Foam::snappyLayerDriver::writeLayerData
dimensionedScalar("zero", dimless, 0),
fixedValueFvPatchScalarField::typeName
);
volScalarField::Boundary& fldBf = fld.boundaryFieldRef();
const polyBoundaryMesh& pbm = mesh.boundaryMesh();
forAll(patchIDs, i)
{
......@@ -2838,7 +2839,7 @@ bool Foam::snappyLayerDriver::writeLayerData
}
}
fld.boundaryField()[patchI] == pfld;
fldBf[patchI] == pfld;
}
Info<< indent << fld.name()
<< " : overall layer thickness (fraction"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment