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
2013-07-18 10:15:54 +02:00

41 lines
794 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
);