This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/solidMechanics/icoFsiElasticNonLinULSolidFoam/createStressPointMesh.H
2012-09-11 16:42:55 +01:00

41 lines
797 B
C

// Create point stress mesh for interpolation
pointMesh pStressMesh(stressMesh);
pointPatchInterpolation patchPointInterpolator(stressMesh);
// Create point displacement field (check fixedValue patches)
wordList types
(
pStressMesh.boundary().size(),
calculatedFvPatchVectorField::typeName
);
// wordList types = DU.boundaryField().types();
forAll(DU.boundaryField().types(), patchI)
{
if
(
DU.boundaryField().types()[patchI]
== fixedValueFvPatchVectorField::typeName
)
{
types[patchI] = fixedValueFvPatchVectorField::typeName;
}
}
pointVectorField pointDU
(
IOobject
(
"pointDU",
runTime.timeName(),
stressMesh
),
pStressMesh,
dimensionedVector("zero", dimLength, vector::zero),
types
);