Removing trailing whitespace, tabs and DOS CR & Fixing some indentation
This commit is contained in:
parent
d838b666f6
commit
a224c64812
110 changed files with 1957 additions and 2039 deletions
|
@ -104,9 +104,9 @@ function(GetGitBranchName var)
|
||||||
foreach(branch ${listOfGitBranches})
|
foreach(branch ${listOfGitBranches})
|
||||||
string(REGEX MATCH "\\* .*$" matchString ${branch})
|
string(REGEX MATCH "\\* .*$" matchString ${branch})
|
||||||
string(LENGTH "${matchString}" lengthMatchString)
|
string(LENGTH "${matchString}" lengthMatchString)
|
||||||
if(lengthMatchString GREATER 0)
|
if(lengthMatchString GREATER 0)
|
||||||
# We have match. Cleanup and set retValue
|
# We have match. Cleanup and set retValue
|
||||||
string(REPLACE "* " "" retValue ${matchString})
|
string(REPLACE "* " "" retValue ${matchString})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ function(GetGitRevNumber var)
|
||||||
set( retValue "unknown")
|
set( retValue "unknown")
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND git rev-parse --short=12 HEAD
|
COMMAND git rev-parse --short=12 HEAD
|
||||||
WORKING_DIRECTORY ${FOAM_ROOT}
|
WORKING_DIRECTORY ${FOAM_ROOT}
|
||||||
OUTPUT_VARIABLE git_rev_number
|
OUTPUT_VARIABLE git_rev_number
|
||||||
)
|
)
|
||||||
|
@ -259,11 +259,11 @@ elseif(GIT_FOUND)
|
||||||
|
|
||||||
if(NOT GIT_ECODE)
|
if(NOT GIT_ECODE)
|
||||||
# We have a valid git repository.
|
# We have a valid git repository.
|
||||||
# Grab the branch and revision info. Add to the build name
|
# Grab the branch and revision info. Add to the build name
|
||||||
GetGitBranchName(GIT_BRANCH_NAME)
|
GetGitBranchName(GIT_BRANCH_NAME)
|
||||||
message("Git branch: ${GIT_BRANCH_NAME}")
|
message("Git branch: ${GIT_BRANCH_NAME}")
|
||||||
|
|
||||||
GetGitRevNumber(GIT_REV_NUMBER)
|
GetGitRevNumber(GIT_REV_NUMBER)
|
||||||
message("Git revision: ${GIT_REV_NUMBER}")
|
message("Git revision: ${GIT_REV_NUMBER}")
|
||||||
|
|
||||||
SET(BUILDNAME "${BUILDNAME}-git-branch=${GIT_BRANCH_NAME}")
|
SET(BUILDNAME "${BUILDNAME}-git-branch=${GIT_BRANCH_NAME}")
|
||||||
|
@ -301,8 +301,8 @@ elseif(GIT_FOUND)
|
||||||
SET(BUILDNAME "${BUILDNAME}-hg-rev=${GIT_REV_NUMBER}")
|
SET(BUILDNAME "${BUILDNAME}-hg-rev=${GIT_REV_NUMBER}")
|
||||||
else()
|
else()
|
||||||
# Not a git or mercurial repository: no branch nor revision information available
|
# Not a git or mercurial repository: no branch nor revision information available
|
||||||
SET(BUILDNAME "${BUILDNAME}-git-branch=unknown")
|
SET(BUILDNAME "${BUILDNAME}-git-branch=unknown")
|
||||||
SET(BUILDNAME "${BUILDNAME}-git-rev=unknown")
|
SET(BUILDNAME "${BUILDNAME}-git-rev=unknown")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
@ -379,18 +379,18 @@ IF(BUILD_TESTING)
|
||||||
IF(RUN_FROM_ONE_TIMESTEP)
|
IF(RUN_FROM_ONE_TIMESTEP)
|
||||||
# Modify the cases controlDict file in order to run for only one time step
|
# Modify the cases controlDict file in order to run for only one time step
|
||||||
MESSAGE("${testRunTimeDirectory}: Modifying the controlDict files for running only one time step in directory: ${TEST_CASE_DIR}")
|
MESSAGE("${testRunTimeDirectory}: Modifying the controlDict files for running only one time step in directory: ${TEST_CASE_DIR}")
|
||||||
if(CMAKE_HOST_WIN32)
|
if(CMAKE_HOST_WIN32)
|
||||||
# Need to supply a bash shell to run the script under Windows
|
# Need to supply a bash shell to run the script under Windows
|
||||||
EXECUTE_PROCESS(
|
EXECUTE_PROCESS(
|
||||||
COMMAND bash -c "$ENV{FOAM_TEST_HARNESS_DIR}/scripts/prepareCasesForOneTimeStep.sh ${TEST_CASE_DIR}"
|
COMMAND bash -c "$ENV{FOAM_TEST_HARNESS_DIR}/scripts/prepareCasesForOneTimeStep.sh ${TEST_CASE_DIR}"
|
||||||
WORKING_DIRECTORY .
|
WORKING_DIRECTORY .
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
EXECUTE_PROCESS(
|
EXECUTE_PROCESS(
|
||||||
COMMAND $ENV{FOAM_TEST_HARNESS_DIR}/scripts/prepareCasesForOneTimeStep.sh ${TEST_CASE_DIR}
|
COMMAND $ENV{FOAM_TEST_HARNESS_DIR}/scripts/prepareCasesForOneTimeStep.sh ${TEST_CASE_DIR}
|
||||||
WORKING_DIRECTORY .
|
WORKING_DIRECTORY .
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
ENDIF(RUN_FROM_ONE_TIMESTEP)
|
ENDIF(RUN_FROM_ONE_TIMESTEP)
|
||||||
|
|
||||||
ENDIF(BUILD_TESTING)
|
ENDIF(BUILD_TESTING)
|
||||||
|
|
|
@ -58,6 +58,3 @@ Features
|
||||||
|
|
||||||
git commit: "add branch ReadMe file"
|
git commit: "add branch ReadMe file"
|
||||||
--> added this file
|
--> added this file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
_____________________________________
|
_____________________________________
|
||||||
|
|
||||||
*RELEASE NOTES FOR FOAM-EXTEND-3.2*
|
*RELEASE NOTES FOR FOAM-EXTEND-3.2*
|
||||||
_____________________________________
|
_____________________________________
|
||||||
|
|
||||||
|
|
||||||
August 2015
|
August 2015
|
||||||
|
|
||||||
|
|
||||||
Table of Contents
|
Table of Contents
|
||||||
|
|
|
@ -113,14 +113,14 @@ void Foam::fluidSolidInterface::calcFluidToSolidInterpolator() const
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<RBFFunctionInterface> rbfFunction;
|
std::shared_ptr<RBFFunctionInterface> rbfFunction;
|
||||||
rbfFunction = std::shared_ptr<RBFFunctionInterface>( new TPSFunction() );
|
rbfFunction = std::shared_ptr<RBFFunctionInterface>(new TPSFunction());
|
||||||
|
|
||||||
// std::shared_ptr<RBFInterpolation> rbf;
|
// std::shared_ptr<RBFInterpolation> rbf;
|
||||||
fluidToSolidPtr_ =
|
fluidToSolidPtr_ =
|
||||||
std::shared_ptr<RBFInterpolation>
|
std::shared_ptr<RBFInterpolation>
|
||||||
(
|
(
|
||||||
new RBFInterpolation( rbfFunction )
|
new RBFInterpolation(rbfFunction)
|
||||||
// new RBFInterpolation( rbfFunctionPtr_ )
|
// new RBFInterpolation(rbfFunctionPtr_)
|
||||||
);
|
);
|
||||||
|
|
||||||
vectorField solidZoneFaceCentres =
|
vectorField solidZoneFaceCentres =
|
||||||
|
@ -146,7 +146,7 @@ void Foam::fluidSolidInterface::calcFluidToSolidInterpolator() const
|
||||||
solidX(faceI, 2) = solidZoneFaceCentres[faceI].z();
|
solidX(faceI, 2) = solidZoneFaceCentres[faceI].z();
|
||||||
}
|
}
|
||||||
|
|
||||||
fluidToSolidPtr_->compute( fluidX, solidX );
|
fluidToSolidPtr_->compute(fluidX, solidX);
|
||||||
|
|
||||||
Info << "Checking fluid-to-solid interpolator" << endl;
|
Info << "Checking fluid-to-solid interpolator" << endl;
|
||||||
{
|
{
|
||||||
|
@ -186,39 +186,39 @@ void Foam::fluidSolidInterface::calcFluidToSolidInterpolator() const
|
||||||
solidMesh().boundaryMesh()[solidPatchIndex_].faceCentres()
|
solidMesh().boundaryMesh()[solidPatchIndex_].faceCentres()
|
||||||
);
|
);
|
||||||
|
|
||||||
matrix fluidX(fluidZoneFaceCentres.size(), 3);
|
matrix fluidX(fluidZoneFaceCentres.size(), 3);
|
||||||
// matrix solidX(solidPatchFaceCentres.size(), 3);
|
// matrix solidX(solidPatchFaceCentres.size(), 3);
|
||||||
matrix fluidXsolid(solidPatchFaceCentres.size(), 3);
|
matrix fluidXsolid(solidPatchFaceCentres.size(), 3);
|
||||||
|
|
||||||
forAll(fluidZoneFaceCentres, faceI)
|
forAll(fluidZoneFaceCentres, faceI)
|
||||||
{
|
{
|
||||||
fluidX(faceI, 0) = fluidZoneFaceCentres[faceI].x();
|
fluidX(faceI, 0) = fluidZoneFaceCentres[faceI].x();
|
||||||
fluidX(faceI, 1) = fluidZoneFaceCentres[faceI].y();
|
fluidX(faceI, 1) = fluidZoneFaceCentres[faceI].y();
|
||||||
fluidX(faceI, 2) = fluidZoneFaceCentres[faceI].z();
|
fluidX(faceI, 2) = fluidZoneFaceCentres[faceI].z();
|
||||||
}
|
}
|
||||||
|
|
||||||
// forAll(solidPatchFaceCentres, faceI)
|
// forAll(solidPatchFaceCentres, faceI)
|
||||||
// {
|
// {
|
||||||
// solidX(faceI, 0) = solidPatchFaceCentres[faceI].x();
|
// solidX(faceI, 0) = solidPatchFaceCentres[faceI].x();
|
||||||
// solidX(faceI, 1) = solidPatchFaceCentres[faceI].y();
|
// solidX(faceI, 1) = solidPatchFaceCentres[faceI].y();
|
||||||
// solidX(faceI, 2) = solidPatchFaceCentres[faceI].z();
|
// solidX(faceI, 2) = solidPatchFaceCentres[faceI].z();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// fluidToSolidPtr_->compute( fluidX, solidX );
|
// fluidToSolidPtr_->compute(fluidX, solidX);
|
||||||
fluidToSolidPtr_->interpolate( fluidX, fluidXsolid );
|
fluidToSolidPtr_->interpolate(fluidX, fluidXsolid);
|
||||||
|
|
||||||
vectorField fluidPatchFaceCentresAtSolid
|
vectorField fluidPatchFaceCentresAtSolid
|
||||||
(
|
(
|
||||||
solidPatchFaceCentres.size(),
|
solidPatchFaceCentres.size(),
|
||||||
vector::zero
|
vector::zero
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(fluidPatchFaceCentresAtSolid, faceI)
|
forAll(fluidPatchFaceCentresAtSolid, faceI)
|
||||||
{
|
{
|
||||||
fluidPatchFaceCentresAtSolid[faceI].x() = fluidXsolid(faceI, 0);
|
fluidPatchFaceCentresAtSolid[faceI].x() = fluidXsolid(faceI, 0);
|
||||||
fluidPatchFaceCentresAtSolid[faceI].y() = fluidXsolid(faceI, 1);
|
fluidPatchFaceCentresAtSolid[faceI].y() = fluidXsolid(faceI, 1);
|
||||||
fluidPatchFaceCentresAtSolid[faceI].z() = fluidXsolid(faceI, 2);
|
fluidPatchFaceCentresAtSolid[faceI].z() = fluidXsolid(faceI, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
scalar maxDist = gMax
|
scalar maxDist = gMax
|
||||||
(
|
(
|
||||||
|
@ -515,14 +515,14 @@ void Foam::fluidSolidInterface::calcSolidToFluidInterpolator() const
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<RBFFunctionInterface> rbfFunction;
|
std::shared_ptr<RBFFunctionInterface> rbfFunction;
|
||||||
rbfFunction = std::shared_ptr<RBFFunctionInterface>( new TPSFunction() );
|
rbfFunction = std::shared_ptr<RBFFunctionInterface>(new TPSFunction());
|
||||||
|
|
||||||
// std::shared_ptr<RBFInterpolation> rbf;
|
// std::shared_ptr<RBFInterpolation> rbf;
|
||||||
solidToFluidPtr_ =
|
solidToFluidPtr_ =
|
||||||
std::shared_ptr<RBFInterpolation>
|
std::shared_ptr<RBFInterpolation>
|
||||||
(
|
(
|
||||||
new RBFInterpolation( rbfFunction )
|
new RBFInterpolation(rbfFunction)
|
||||||
// new RBFInterpolation( rbfFunctionPtr_ )
|
// new RBFInterpolation(rbfFunctionPtr_)
|
||||||
);
|
);
|
||||||
|
|
||||||
vectorField solidZonePoints =
|
vectorField solidZonePoints =
|
||||||
|
@ -548,7 +548,7 @@ void Foam::fluidSolidInterface::calcSolidToFluidInterpolator() const
|
||||||
solidX(faceI, 2) = solidZonePoints[faceI].z();
|
solidX(faceI, 2) = solidZonePoints[faceI].z();
|
||||||
}
|
}
|
||||||
|
|
||||||
solidToFluidPtr_->compute( solidX, fluidX );
|
solidToFluidPtr_->compute(solidX, fluidX);
|
||||||
|
|
||||||
Info << "Checking solid-to-fluid interpolator" << endl;
|
Info << "Checking solid-to-fluid interpolator" << endl;
|
||||||
{
|
{
|
||||||
|
@ -564,14 +564,14 @@ void Foam::fluidSolidInterface::calcSolidToFluidInterpolator() const
|
||||||
solidPoints(faceI, 2) = solidZonePoints[faceI].z();
|
solidPoints(faceI, 2) = solidZonePoints[faceI].z();
|
||||||
}
|
}
|
||||||
|
|
||||||
solidToFluidPtr_->interpolate( solidPoints, fluidPoints );
|
solidToFluidPtr_->interpolate(solidPoints, fluidPoints);
|
||||||
|
|
||||||
forAll(fluidZonePoints, faceI)
|
forAll(fluidZonePoints, faceI)
|
||||||
{
|
{
|
||||||
fluidZonePointsInterp[faceI].x() = fluidPoints(faceI, 0);
|
fluidZonePointsInterp[faceI].x() = fluidPoints(faceI, 0);
|
||||||
fluidZonePointsInterp[faceI].y() = fluidPoints(faceI, 1);
|
fluidZonePointsInterp[faceI].y() = fluidPoints(faceI, 1);
|
||||||
fluidZonePointsInterp[faceI].z() = fluidPoints(faceI, 2);
|
fluidZonePointsInterp[faceI].z() = fluidPoints(faceI, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
scalar maxDist = gMax
|
scalar maxDist = gMax
|
||||||
(
|
(
|
||||||
|
@ -2026,24 +2026,24 @@ void Foam::fluidSolidInterface::updateForce()
|
||||||
{
|
{
|
||||||
Info << "... using RBF interpolation" << endl;
|
Info << "... using RBF interpolation" << endl;
|
||||||
|
|
||||||
matrix fluidForce(fluidZoneTotalTraction.size(), 3);
|
matrix fluidForce(fluidZoneTotalTraction.size(), 3);
|
||||||
matrix solidForce(solidZoneTotalTraction.size(), 3);
|
matrix solidForce(solidZoneTotalTraction.size(), 3);
|
||||||
|
|
||||||
forAll(fluidZoneTotalTraction, faceI)
|
forAll(fluidZoneTotalTraction, faceI)
|
||||||
{
|
{
|
||||||
fluidForce(faceI, 0) = fluidZoneTotalTraction[faceI].x();
|
fluidForce(faceI, 0) = fluidZoneTotalTraction[faceI].x();
|
||||||
fluidForce(faceI, 1) = fluidZoneTotalTraction[faceI].y();
|
fluidForce(faceI, 1) = fluidZoneTotalTraction[faceI].y();
|
||||||
fluidForce(faceI, 2) = fluidZoneTotalTraction[faceI].z();
|
fluidForce(faceI, 2) = fluidZoneTotalTraction[faceI].z();
|
||||||
}
|
}
|
||||||
|
|
||||||
fluidToSolid()->interpolate( fluidForce, solidForce );
|
fluidToSolid()->interpolate(fluidForce, solidForce);
|
||||||
|
|
||||||
forAll(solidZoneTotalTraction, faceI)
|
forAll(solidZoneTotalTraction, faceI)
|
||||||
{
|
{
|
||||||
solidZoneTotalTraction[faceI].x() = -solidForce(faceI, 0);
|
solidZoneTotalTraction[faceI].x() = -solidForce(faceI, 0);
|
||||||
solidZoneTotalTraction[faceI].y() = -solidForce(faceI, 1);
|
solidZoneTotalTraction[faceI].y() = -solidForce(faceI, 1);
|
||||||
solidZoneTotalTraction[faceI].z() = -solidForce(faceI, 2);
|
solidZoneTotalTraction[faceI].z() = -solidForce(faceI, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2723,41 +2723,41 @@ Foam::scalar Foam::fluidSolidInterface::updateResidual()
|
||||||
{
|
{
|
||||||
Info << "Displacement interpolation using RBF interpolation" << endl;
|
Info << "Displacement interpolation using RBF interpolation" << endl;
|
||||||
|
|
||||||
matrix fluidDispl(solidZonePointsDispl().size(), 3);
|
matrix fluidDispl(solidZonePointsDispl().size(), 3);
|
||||||
matrix solidDispl(solidZonePointsDisplAtSolid.size(), 3);
|
matrix solidDispl(solidZonePointsDisplAtSolid.size(), 3);
|
||||||
|
|
||||||
forAll(solidZonePointsDisplAtSolid, pointI)
|
forAll(solidZonePointsDisplAtSolid, pointI)
|
||||||
{
|
{
|
||||||
solidDispl(pointI, 0) = solidZonePointsDisplAtSolid[pointI].x();
|
solidDispl(pointI, 0) = solidZonePointsDisplAtSolid[pointI].x();
|
||||||
solidDispl(pointI, 1) = solidZonePointsDisplAtSolid[pointI].y();
|
solidDispl(pointI, 1) = solidZonePointsDisplAtSolid[pointI].y();
|
||||||
solidDispl(pointI, 2) = solidZonePointsDisplAtSolid[pointI].z();
|
solidDispl(pointI, 2) = solidZonePointsDisplAtSolid[pointI].z();
|
||||||
}
|
}
|
||||||
|
|
||||||
solidToFluid()->interpolate( solidDispl, fluidDispl );
|
solidToFluid()->interpolate(solidDispl, fluidDispl);
|
||||||
|
|
||||||
forAll(solidZonePointsDispl(), pointI)
|
forAll(solidZonePointsDispl(), pointI)
|
||||||
{
|
{
|
||||||
solidZonePointsDispl()[pointI].x() = fluidDispl(pointI, 0);
|
solidZonePointsDispl()[pointI].x() = fluidDispl(pointI, 0);
|
||||||
solidZonePointsDispl()[pointI].y() = fluidDispl(pointI, 1);
|
solidZonePointsDispl()[pointI].y() = fluidDispl(pointI, 1);
|
||||||
solidZonePointsDispl()[pointI].z() = fluidDispl(pointI, 2);
|
solidZonePointsDispl()[pointI].z() = fluidDispl(pointI, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Total displacement
|
// Total displacement
|
||||||
forAll(solidZonePointsTotDisplAtSolid, pointI)
|
forAll(solidZonePointsTotDisplAtSolid, pointI)
|
||||||
{
|
{
|
||||||
solidDispl(pointI, 0) = solidZonePointsTotDisplAtSolid[pointI].x();
|
solidDispl(pointI, 0) = solidZonePointsTotDisplAtSolid[pointI].x();
|
||||||
solidDispl(pointI, 1) = solidZonePointsTotDisplAtSolid[pointI].y();
|
solidDispl(pointI, 1) = solidZonePointsTotDisplAtSolid[pointI].y();
|
||||||
solidDispl(pointI, 2) = solidZonePointsTotDisplAtSolid[pointI].z();
|
solidDispl(pointI, 2) = solidZonePointsTotDisplAtSolid[pointI].z();
|
||||||
}
|
}
|
||||||
|
|
||||||
solidToFluid()->interpolate( solidDispl, fluidDispl );
|
solidToFluid()->interpolate(solidDispl, fluidDispl);
|
||||||
|
|
||||||
forAll(solidZonePointsTotDispl, pointI)
|
forAll(solidZonePointsTotDispl, pointI)
|
||||||
{
|
{
|
||||||
solidZonePointsTotDispl[pointI].x() = fluidDispl(pointI, 0);
|
solidZonePointsTotDispl[pointI].x() = fluidDispl(pointI, 0);
|
||||||
solidZonePointsTotDispl[pointI].y() = fluidDispl(pointI, 1);
|
solidZonePointsTotDispl[pointI].y() = fluidDispl(pointI, 1);
|
||||||
solidZonePointsTotDispl[pointI].z() = fluidDispl(pointI, 2);
|
solidZonePointsTotDispl[pointI].z() = fluidDispl(pointI, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -376,7 +376,7 @@ gradientBoundaryCoeffs() const
|
||||||
vectorField nGradU =
|
vectorField nGradU =
|
||||||
2
|
2
|
||||||
*(
|
*(
|
||||||
*this
|
*this
|
||||||
- (patchInternalField() + dUP)
|
- (patchInternalField() + dUP)
|
||||||
)*this->patch().deltaCoeffs()
|
)*this->patch().deltaCoeffs()
|
||||||
- nGradUP;
|
- nGradUP;
|
||||||
|
|
|
@ -339,7 +339,7 @@ gradientBoundaryCoeffs() const
|
||||||
vectorField nGradU =
|
vectorField nGradU =
|
||||||
2
|
2
|
||||||
*(
|
*(
|
||||||
*this
|
*this
|
||||||
- (patchInternalField() + dUP)
|
- (patchInternalField() + dUP)
|
||||||
)*this->patch().deltaCoeffs()
|
)*this->patch().deltaCoeffs()
|
||||||
- nGradUP;
|
- nGradUP;
|
||||||
|
|
|
@ -326,7 +326,7 @@ gradientBoundaryCoeffs() const
|
||||||
// vectorField nGradU =
|
// vectorField nGradU =
|
||||||
// 2
|
// 2
|
||||||
// *(
|
// *(
|
||||||
// *this
|
// *this
|
||||||
// - (patchInternalField() + dUP)
|
// - (patchInternalField() + dUP)
|
||||||
// )*this->patch().deltaCoeffs()
|
// )*this->patch().deltaCoeffs()
|
||||||
// - nGradUP;
|
// - nGradUP;
|
||||||
|
|
|
@ -20,7 +20,7 @@ forAll(p_.boundaryField(), patchI)
|
||||||
(n&U_.boundaryField()[patchI])
|
(n&U_.boundaryField()[patchI])
|
||||||
/rUA.boundaryField()[patchI]
|
/rUA.boundaryField()[patchI]
|
||||||
- phi_.boundaryField()[patchI]
|
- phi_.boundaryField()[patchI]
|
||||||
/mesh.magSf().boundaryField()[patchI]
|
/mesh.magSf().boundaryField()[patchI]
|
||||||
/rUA.boundaryField()[patchI]
|
/rUA.boundaryField()[patchI]
|
||||||
+ nGradUn_
|
+ nGradUn_
|
||||||
/mesh.deltaCoeffs().boundaryField()[patchI]
|
/mesh.deltaCoeffs().boundaryField()[patchI]
|
||||||
|
@ -28,7 +28,7 @@ forAll(p_.boundaryField(), patchI)
|
||||||
|
|
||||||
phi_.boundaryField()[patchI] +=
|
phi_.boundaryField()[patchI] +=
|
||||||
pInterface.gradient()
|
pInterface.gradient()
|
||||||
*rUA.boundaryField()[patchI]
|
*rUA.boundaryField()[patchI]
|
||||||
*mesh.magSf().boundaryField()[patchI];
|
*mesh.magSf().boundaryField()[patchI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,36 +17,34 @@
|
||||||
*mesh.deltaCoeffs().boundaryField()[fsi.fluidPatchIndex()];
|
*mesh.deltaCoeffs().boundaryField()[fsi.fluidPatchIndex()];
|
||||||
|
|
||||||
Info << "nGradUn, max: " << gMax(nGradUn_) << ", min: "
|
Info << "nGradUn, max: " << gMax(nGradUn_) << ", min: "
|
||||||
<< gMin(nGradUn_) << ", avg: " << gAverage(nGradUn_) << endl;
|
<< gMin(nGradUn_) << ", avg: " << gAverage(nGradUn_) << endl;
|
||||||
|
|
||||||
// bool secondOrderCorrection = true;
|
// bool secondOrderCorrection = true;
|
||||||
|
|
||||||
// if (secondOrderCorrection)
|
// if (secondOrderCorrection)
|
||||||
// {
|
// {
|
||||||
// // Correct normal component of phiU
|
// // Correct normal component of phiU
|
||||||
// // befor gradient calculation
|
// // befor gradient calculation
|
||||||
// forAll(phiU.boundaryField(), patchI)
|
// forAll(phiU.boundaryField(), patchI)
|
||||||
// {
|
// {
|
||||||
// vectorField n =
|
// vectorField n =
|
||||||
// mesh().Sf().boundaryField()[patchI]
|
// mesh().Sf().boundaryField()[patchI]
|
||||||
// /mesh().magSf().boundaryField()[patchI];
|
// /mesh().magSf().boundaryField()[patchI];
|
||||||
|
|
||||||
// phiU.boundaryField()[patchI] +=
|
// phiU.boundaryField()[patchI] +=
|
||||||
// n
|
// n
|
||||||
// *(
|
// *(
|
||||||
// (
|
// (
|
||||||
// phi_.boundaryField()[patchI]
|
// phi_.boundaryField()[patchI]
|
||||||
// /mesh().magSf().boundaryField()[patchI]
|
// /mesh().magSf().boundaryField()[patchI]
|
||||||
// )
|
// )
|
||||||
// - (n&phiU.boundaryField()[patchI])
|
// - (n&phiU.boundaryField()[patchI])
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// // Calc gradient
|
// // Calc gradient
|
||||||
// tensorField gradPhiUp =
|
// tensorField gradPhiUp =
|
||||||
// fvc::grad(phiU)().boundaryField()[aPatchID()]
|
// fvc::grad(phiU)().boundaryField()[aPatchID()].patchInternalField();
|
||||||
// .patchInternalField();
|
// nGradUn() = 2*nGradUn() - (nA&(gradPhiUp&nA));
|
||||||
|
// }
|
||||||
// nGradUn() = 2*nGradUn() - (nA&(gradPhiUp&nA));
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,8 +199,8 @@ public:
|
||||||
//- If the rheologyLaw needs plasticity procedures
|
//- If the rheologyLaw needs plasticity procedures
|
||||||
virtual bool plasticityModelNeeded() const
|
virtual bool plasticityModelNeeded() const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
//- Return modulus of plasticity
|
//- Return modulus of plasticity
|
||||||
virtual tmp<volScalarField> Ep() const;
|
virtual tmp<volScalarField> Ep() const;
|
||||||
|
|
|
@ -81,147 +81,156 @@ Foam::orthotropicLinearElastic::orthotropicLinearElastic
|
||||||
A44_( 2*Gxy_ ),
|
A44_( 2*Gxy_ ),
|
||||||
A55_( 2*Gyz_ ),
|
A55_( 2*Gyz_ ),
|
||||||
A66_( 2*Gzx_ ),
|
A66_( 2*Gzx_ ),
|
||||||
C_(
|
C_
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"rheologyLawStoredC",
|
|
||||||
mesh().time().timeName(),
|
|
||||||
mesh(),
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
),
|
|
||||||
mesh(),
|
|
||||||
dimensionedSymmTensor4thOrder("zero", dimForce/dimArea,
|
|
||||||
symmTensor4thOrder(A11_.value(), A12_.value(), A31_.value(),
|
|
||||||
A22_.value(), A23_.value(),
|
|
||||||
A33_.value(),
|
|
||||||
A44_.value(),
|
|
||||||
A55_.value(),
|
|
||||||
A66_.value())
|
|
||||||
),
|
|
||||||
zeroGradientFvPatchSymmTensor4thOrderField::typeName
|
|
||||||
),
|
|
||||||
matDir_(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"materialDirections",
|
|
||||||
mesh().time().timeName(),
|
|
||||||
mesh(),
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
),
|
|
||||||
mesh()
|
|
||||||
)
|
|
||||||
{
|
|
||||||
//- check material properties lie within physical constraints
|
|
||||||
//- ref Abaqus analysis user's manual orthotropic material
|
|
||||||
Info << "\tChecking physical constraints on the orthotropic material properties" << endl;
|
|
||||||
|
|
||||||
//- E and G should be greater than zero
|
|
||||||
if(Ex_.value() < 0.0 || Ey_.value() < 0.0 || Ez_.value() < 0.0
|
|
||||||
|| Gxy_.value() < 0.0 || Gyz_.value() < 0.0 || Gzx_.value() < 0.0)
|
|
||||||
{
|
|
||||||
FatalError << "Ex, Ey, Ez, Gxy, Gyz, Gzx should all be greater than zero!"
|
|
||||||
<< exit(FatalError);
|
|
||||||
}
|
|
||||||
|
|
||||||
//- restriction on Poisson's ratio
|
|
||||||
if(mag(nuxy_.value()) >= sqrt(Ex_.value()/Ey_.value())
|
|
||||||
|| mag(nuyz_.value()) >= sqrt(Ey_.value()/Ez_.value())
|
|
||||||
|| mag(nuzx_.value()) >= sqrt(Ez_.value()/Ex_.value()))
|
|
||||||
{
|
|
||||||
FatalError << "mag(nuij) should be less sqrt(Ei/Ej)"
|
|
||||||
<< exit(FatalError);
|
|
||||||
}
|
|
||||||
|
|
||||||
if( dimensionedScalar(1 - nuxy_*nuyx_ - nuyz_*nuzy_ - nuzx_*nuxz_ - 2*nuyx_*nuzy_*nuxz_).value() <= 0 )
|
|
||||||
{
|
|
||||||
FatalError << "(1 - nuxy*nuyx - nuyz*nuzy - nuzx*nuxz - 2*nuyx*nuzy*nuxz) should be greater than zero!"
|
|
||||||
<< exit(FatalError);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Info << "\tRotating local material properties to global coordinate system" << endl;
|
|
||||||
//- rotate tensors
|
|
||||||
volTensorField R
|
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"R",
|
"rheologyLawStoredC",
|
||||||
mesh().time().timeName(),
|
mesh().time().timeName(),
|
||||||
mesh(),
|
mesh(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedTensor("zero", dimless, tensor::zero),
|
dimensionedSymmTensor4thOrder("zero", dimForce/dimArea,
|
||||||
zeroGradientFvPatchTensorField::typeName
|
symmTensor4thOrder
|
||||||
);
|
(
|
||||||
|
A11_.value(), A12_.value(), A31_.value(),
|
||||||
|
A22_.value(), A23_.value(),
|
||||||
|
A33_.value(),
|
||||||
|
A44_.value(),
|
||||||
|
A55_.value(),
|
||||||
|
A66_.value())
|
||||||
|
),
|
||||||
|
zeroGradientFvPatchSymmTensor4thOrderField::typeName
|
||||||
|
),
|
||||||
|
matDir_
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"materialDirections",
|
||||||
|
mesh().time().timeName(),
|
||||||
|
mesh(),
|
||||||
|
IOobject::MUST_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
mesh()
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//- check material properties lie within physical constraints
|
||||||
|
//- ref Abaqus analysis user's manual orthotropic material
|
||||||
|
Info << "\tChecking physical constraints on the orthotropic material properties" << endl;
|
||||||
|
|
||||||
//- make sure matDir_ are unit directions
|
//- E and G should be greater than zero
|
||||||
forAll(matDir_, celli)
|
if
|
||||||
|
(
|
||||||
|
Ex_.value() < 0.0 || Ey_.value() < 0.0 || Ez_.value() < 0.0
|
||||||
|
|| Gxy_.value() < 0.0 || Gyz_.value() < 0.0 || Gzx_.value() < 0.0
|
||||||
|
)
|
||||||
{
|
{
|
||||||
{
|
FatalError << "Ex, Ey, Ez, Gxy, Gyz, Gzx should all be greater than zero!"
|
||||||
scalar magVec =
|
<< exit(FatalError);
|
||||||
mag(vector(matDir_[celli][0], matDir_[celli][1], matDir_[celli][2]));
|
|
||||||
matDir_[celli][0] /= magVec;
|
|
||||||
matDir_[celli][1] /= magVec;
|
|
||||||
matDir_[celli][2] /= magVec;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
scalar magVec =
|
|
||||||
mag(vector(matDir_[celli][3], matDir_[celli][4], matDir_[celli][5]));
|
|
||||||
matDir_[celli][3] /= magVec;
|
|
||||||
matDir_[celli][4] /= magVec;
|
|
||||||
matDir_[celli][5] /= magVec;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
scalar magVec =
|
|
||||||
mag(vector(matDir_[celli][6], matDir_[celli][7], matDir_[celli][8]));
|
|
||||||
matDir_[celli][6] /= magVec;
|
|
||||||
matDir_[celli][7] /= magVec;
|
|
||||||
matDir_[celli][8] /= magVec;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//- global axes
|
//- restriction on Poisson's ratio
|
||||||
vector e0(1,0,0);
|
if
|
||||||
vector e1(0,1,0);
|
(
|
||||||
vector e2(0,0,1);
|
mag(nuxy_.value()) >= sqrt(Ex_.value()/Ey_.value())
|
||||||
|
|| mag(nuyz_.value()) >= sqrt(Ey_.value()/Ez_.value())
|
||||||
forAll(R, celli)
|
|| mag(nuzx_.value()) >= sqrt(Ez_.value()/Ex_.value())
|
||||||
|
)
|
||||||
{
|
{
|
||||||
// R_ij = xold_i & xnew_i;
|
FatalError << "mag(nuij) should be less sqrt(Ei/Ej)"
|
||||||
{
|
<< exit(FatalError);
|
||||||
vector mD(matDir_[celli][0], matDir_[celli][1], matDir_[celli][2]);
|
|
||||||
R[celli][0] = e0 & mD;
|
|
||||||
R[celli][1] = e1 & mD;
|
|
||||||
R[celli][2] = e2 & mD;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
vector mD(matDir_[celli][3], matDir_[celli][4], matDir_[celli][5]);
|
|
||||||
R[celli][3] = e0 & mD;
|
|
||||||
R[celli][4] = e1 & mD;
|
|
||||||
R[celli][5] = e2 & mD;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
vector mD(matDir_[celli][6], matDir_[celli][7], matDir_[celli][8]);
|
|
||||||
R[celli][6] = e0 & mD;
|
|
||||||
R[celli][7] = e1 & mD;
|
|
||||||
R[celli][8] = e2 & mD;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Info << "R is " << R.internalField() << endl;
|
if( dimensionedScalar(1 - nuxy_*nuyx_ - nuyz_*nuzy_ - nuzx_*nuxz_ - 2*nuyx_*nuzy_*nuxz_).value() <= 0 )
|
||||||
R.correctBoundaryConditions();
|
{
|
||||||
//R.write();
|
FatalError << "(1 - nuxy*nuyx - nuyz*nuzy - nuzx*nuxz - 2*nuyx*nuzy*nuxz) should be greater than zero!"
|
||||||
|
<< exit(FatalError);
|
||||||
|
}
|
||||||
|
|
||||||
//- rotate C to global corrdinate system
|
Info << "\tRotating local material properties to global coordinate system" << endl;
|
||||||
//Info << "C_ local is " << C_.internalField() << endl;
|
//- rotate tensors
|
||||||
C_.correctBoundaryConditions();
|
volTensorField R
|
||||||
C_ = transform(R, C_);
|
(
|
||||||
C_.correctBoundaryConditions();
|
IOobject
|
||||||
//Info << "C_ global is " << C_.internalField() << endl;
|
(
|
||||||
|
"R",
|
||||||
|
mesh().time().timeName(),
|
||||||
|
mesh(),
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
mesh(),
|
||||||
|
dimensionedTensor("zero", dimless, tensor::zero),
|
||||||
|
zeroGradientFvPatchTensorField::typeName
|
||||||
|
);
|
||||||
|
|
||||||
|
//- make sure matDir_ are unit directions
|
||||||
|
forAll(matDir_, celli)
|
||||||
|
{
|
||||||
|
{
|
||||||
|
scalar magVec =
|
||||||
|
mag(vector(matDir_[celli][0], matDir_[celli][1], matDir_[celli][2]));
|
||||||
|
matDir_[celli][0] /= magVec;
|
||||||
|
matDir_[celli][1] /= magVec;
|
||||||
|
matDir_[celli][2] /= magVec;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
scalar magVec =
|
||||||
|
mag(vector(matDir_[celli][3], matDir_[celli][4], matDir_[celli][5]));
|
||||||
|
matDir_[celli][3] /= magVec;
|
||||||
|
matDir_[celli][4] /= magVec;
|
||||||
|
matDir_[celli][5] /= magVec;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
scalar magVec =
|
||||||
|
mag(vector(matDir_[celli][6], matDir_[celli][7], matDir_[celli][8]));
|
||||||
|
matDir_[celli][6] /= magVec;
|
||||||
|
matDir_[celli][7] /= magVec;
|
||||||
|
matDir_[celli][8] /= magVec;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//- global axes
|
||||||
|
vector e0(1,0,0);
|
||||||
|
vector e1(0,1,0);
|
||||||
|
vector e2(0,0,1);
|
||||||
|
|
||||||
|
forAll(R, celli)
|
||||||
|
{
|
||||||
|
// R_ij = xold_i & xnew_i;
|
||||||
|
{
|
||||||
|
vector mD(matDir_[celli][0], matDir_[celli][1], matDir_[celli][2]);
|
||||||
|
R[celli][0] = e0 & mD;
|
||||||
|
R[celli][1] = e1 & mD;
|
||||||
|
R[celli][2] = e2 & mD;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
vector mD(matDir_[celli][3], matDir_[celli][4], matDir_[celli][5]);
|
||||||
|
R[celli][3] = e0 & mD;
|
||||||
|
R[celli][4] = e1 & mD;
|
||||||
|
R[celli][5] = e2 & mD;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
vector mD(matDir_[celli][6], matDir_[celli][7], matDir_[celli][8]);
|
||||||
|
R[celli][6] = e0 & mD;
|
||||||
|
R[celli][7] = e1 & mD;
|
||||||
|
R[celli][8] = e2 & mD;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Info << "R is " << R.internalField() << endl;
|
||||||
|
R.correctBoundaryConditions();
|
||||||
|
//R.write();
|
||||||
|
|
||||||
|
//- rotate C to global corrdinate system
|
||||||
|
//Info << "C_ local is " << C_.internalField() << endl;
|
||||||
|
C_.correctBoundaryConditions();
|
||||||
|
C_ = transform(R, C_);
|
||||||
|
C_.correctBoundaryConditions();
|
||||||
|
//Info << "C_ global is " << C_.internalField() << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -362,7 +371,7 @@ Foam::scalar Foam::orthotropicLinearElastic::sigmaY
|
||||||
const label cellID
|
const label cellID
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return GREAT;
|
return GREAT;
|
||||||
}
|
}
|
||||||
|
|
||||||
Foam::scalar Foam::orthotropicLinearElastic::dSigmaY
|
Foam::scalar Foam::orthotropicLinearElastic::dSigmaY
|
||||||
|
@ -371,13 +380,13 @@ Foam::scalar Foam::orthotropicLinearElastic::dSigmaY
|
||||||
const label cellID
|
const label cellID
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Foam::tmp<Foam::volTensorField> Foam::orthotropicLinearElastic::K() const
|
//Foam::tmp<Foam::volTensorField> Foam::orthotropicLinearElastic::K() const
|
||||||
Foam::tmp<Foam::volDiagTensorField> Foam::orthotropicLinearElastic::K() const
|
Foam::tmp<Foam::volDiagTensorField> Foam::orthotropicLinearElastic::K() const
|
||||||
{
|
{
|
||||||
tmp<volDiagTensorField> tresult
|
tmp<volDiagTensorField> tresult
|
||||||
(
|
(
|
||||||
new volDiagTensorField
|
new volDiagTensorField
|
||||||
(
|
(
|
||||||
|
@ -395,34 +404,34 @@ Foam::tmp<Foam::volDiagTensorField> Foam::orthotropicLinearElastic::K() const
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
volDiagTensorField& K = tresult();
|
volDiagTensorField& K = tresult();
|
||||||
|
|
||||||
forAll(K, celli)
|
forAll(K, celli)
|
||||||
{
|
{
|
||||||
K[celli].xx() = C_[celli].xxxx();
|
K[celli].xx() = C_[celli].xxxx();
|
||||||
K[celli].yy() = C_[celli].yyyy();
|
K[celli].yy() = C_[celli].yyyy();
|
||||||
K[celli].zz() = C_[celli].zzzz();
|
K[celli].zz() = C_[celli].zzzz();
|
||||||
}
|
}
|
||||||
|
|
||||||
tresult().correctBoundaryConditions();
|
tresult().correctBoundaryConditions();
|
||||||
|
|
||||||
return tresult;
|
return tresult;
|
||||||
}
|
}
|
||||||
|
|
||||||
Foam::tmp<Foam::volSymmTensor4thOrderField> Foam::orthotropicLinearElastic::C() const
|
Foam::tmp<Foam::volSymmTensor4thOrderField> Foam::orthotropicLinearElastic::C() const
|
||||||
{
|
{
|
||||||
tmp<volSymmTensor4thOrderField> tresult
|
tmp<volSymmTensor4thOrderField> tresult
|
||||||
(
|
(
|
||||||
new volSymmTensor4thOrderField
|
new volSymmTensor4thOrderField
|
||||||
(
|
(
|
||||||
C_
|
C_
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
volSymmTensor4thOrderField& result = tresult();
|
volSymmTensor4thOrderField& result = tresult();
|
||||||
|
|
||||||
result.correctBoundaryConditions();
|
result.correctBoundaryConditions();
|
||||||
|
|
||||||
return tresult;
|
return tresult;
|
||||||
}
|
}
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
|
@ -59,66 +59,67 @@ Foam::dirichletNeumannFriction::dirichletNeumannFriction
|
||||||
const label slaveFaceZoneID
|
const label slaveFaceZoneID
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
frictionContactModel(name, patch, dict, masterPatchID, slavePatchID, masterFaceZoneID, slaveFaceZoneID),
|
frictionContactModel(name, patch, dict, masterPatchID, slavePatchID, masterFaceZoneID, slaveFaceZoneID),
|
||||||
frictionContactModelDict_(dict.subDict(name+"FrictionModelDict")),
|
frictionContactModelDict_(dict.subDict(name+"FrictionModelDict")),
|
||||||
frictionLawPtr_(NULL),
|
frictionLawPtr_(NULL),
|
||||||
mesh_(patch.boundaryMesh().mesh()),
|
mesh_(patch.boundaryMesh().mesh()),
|
||||||
slaveDisp_(mesh().boundaryMesh()[slavePatchID].size(), vector::zero),
|
slaveDisp_(mesh().boundaryMesh()[slavePatchID].size(), vector::zero),
|
||||||
slaveTraction_(mesh().boundaryMesh()[slavePatchID].size(), vector::zero),
|
slaveTraction_(mesh().boundaryMesh()[slavePatchID].size(), vector::zero),
|
||||||
slaveValueFrac_(mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero),
|
slaveValueFrac_(mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero),
|
||||||
//oldSlaveValueFrac_(mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero),
|
//oldSlaveValueFrac_(mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero),
|
||||||
relaxationFactor_(readScalar(frictionContactModelDict_.lookup("relaxationFactor"))),
|
relaxationFactor_(readScalar(frictionContactModelDict_.lookup("relaxationFactor"))),
|
||||||
contactIterNum_(0),
|
contactIterNum_(0),
|
||||||
infoFreq_(readInt(frictionContactModelDict_.lookup("infoFrequency"))),
|
infoFreq_(readInt(frictionContactModelDict_.lookup("infoFrequency"))),
|
||||||
oscillationCorr_(frictionContactModelDict_.lookup("oscillationCorrection")),
|
oscillationCorr_(frictionContactModelDict_.lookup("oscillationCorrection")),
|
||||||
oscillationCorrFac_(readScalar(frictionContactModelDict_.lookup("oscillationCorrectionFactor"))),
|
oscillationCorrFac_(readScalar(frictionContactModelDict_.lookup("oscillationCorrectionFactor"))),
|
||||||
contactFilePtr_(NULL)
|
contactFilePtr_(NULL)
|
||||||
{
|
{
|
||||||
// create friction law
|
// create friction law
|
||||||
frictionLawPtr_ = frictionLaw::New(
|
frictionLawPtr_ = frictionLaw::New
|
||||||
frictionContactModelDict_.lookup("frictionLaw"),
|
(
|
||||||
frictionContactModelDict_
|
frictionContactModelDict_.lookup("frictionLaw"),
|
||||||
).ptr();
|
frictionContactModelDict_
|
||||||
|
).ptr();
|
||||||
|
|
||||||
// master proc open contact info file
|
// master proc open contact info file
|
||||||
if(Pstream::master())
|
if(Pstream::master())
|
||||||
{
|
{
|
||||||
word masterName = mesh_.boundary()[masterPatchID].name();
|
word masterName = mesh_.boundary()[masterPatchID].name();
|
||||||
word slaveName = mesh_.boundary()[slavePatchID].name();
|
word slaveName = mesh_.boundary()[slavePatchID].name();
|
||||||
contactFilePtr_ = new OFstream(fileName("frictionContact_"+masterName+"_"+slaveName+".txt"));
|
contactFilePtr_ = new OFstream(fileName("frictionContact_"+masterName+"_"+slaveName+".txt"));
|
||||||
OFstream& contactFile = *contactFilePtr_;
|
OFstream& contactFile = *contactFilePtr_;
|
||||||
int width = 20;
|
int width = 20;
|
||||||
contactFile << "time";
|
contactFile << "time";
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << "iterNum";
|
contactFile << "iterNum";
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << "relaxationFactor";
|
contactFile << "relaxationFactor";
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << "slipFaces";
|
contactFile << "slipFaces";
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << "stickFaces";
|
contactFile << "stickFaces";
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << "maxMagSlaveTraction" << endl;
|
contactFile << "maxMagSlaveTraction" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::dirichletNeumannFriction::correct
|
void Foam::dirichletNeumannFriction::correct
|
||||||
(
|
(
|
||||||
const vectorField& slavePressure,
|
const vectorField& slavePressure,
|
||||||
const PrimitivePatch<face, List, pointField>& masterFaceZonePatch,
|
const PrimitivePatch<face, List, pointField>& masterFaceZonePatch,
|
||||||
const PrimitivePatch<face, List, pointField>& slaveFaceZonePatch,
|
const PrimitivePatch<face, List, pointField>& slaveFaceZonePatch,
|
||||||
const intersection::algorithm alg,
|
const intersection::algorithm alg,
|
||||||
const intersection::direction dir,
|
const intersection::direction dir,
|
||||||
const word interpolationMethod,
|
const word interpolationMethod,
|
||||||
const word fieldName,
|
const word fieldName,
|
||||||
const Switch orthotropic,
|
const Switch orthotropic,
|
||||||
const word nonLinear,
|
const word nonLinear,
|
||||||
const vectorField& slaveFaceNormals
|
const vectorField& slaveFaceNormals
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const fvMesh& mesh = mesh_;
|
const fvMesh& mesh = mesh_;
|
||||||
const label slavePatchIndex = slavePatchID();
|
const label slavePatchIndex = slavePatchID();
|
||||||
const label masterPatchIndex = masterPatchID();
|
const label masterPatchIndex = masterPatchID();
|
||||||
|
@ -145,30 +146,30 @@ Foam::dirichletNeumannFriction::dirichletNeumannFriction
|
||||||
vectorField slaveDU = dispField.boundaryField()[slavePatchIndex];
|
vectorField slaveDU = dispField.boundaryField()[slavePatchIndex];
|
||||||
|
|
||||||
if(fieldName == "U")
|
if(fieldName == "U")
|
||||||
{
|
{
|
||||||
// lookup old U
|
// lookup old U
|
||||||
const volVectorField& dispOldField =
|
const volVectorField& dispOldField =
|
||||||
mesh.objectRegistry::lookupObject<volVectorField>(fieldName+"_0");
|
mesh.objectRegistry::lookupObject<volVectorField>(fieldName+"_0");
|
||||||
|
|
||||||
// subtract old U
|
// subtract old U
|
||||||
masterDU -= dispOldField.boundaryField()[masterPatchIndex];
|
masterDU -= dispOldField.boundaryField()[masterPatchIndex];
|
||||||
slaveDU -= dispOldField.boundaryField()[slavePatchIndex];
|
slaveDU -= dispOldField.boundaryField()[slavePatchIndex];
|
||||||
}
|
}
|
||||||
else if(fieldName != "DU")
|
else if(fieldName != "DU")
|
||||||
{
|
{
|
||||||
FatalError << "iterativePenaltyFunction::correct()\n"
|
FatalError << "iterativePenaltyFunction::correct()\n"
|
||||||
" The displacement field must be called U or DU"
|
" The displacement field must be called U or DU"
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
// put local masterDU into globalMasterDU
|
// put local masterDU into globalMasterDU
|
||||||
const label masterPatchStart
|
const label masterPatchStart =
|
||||||
= mesh.boundaryMesh()[masterPatchIndex].start();
|
mesh.boundaryMesh()[masterPatchIndex].start();
|
||||||
forAll(masterDU, i)
|
forAll(masterDU, i)
|
||||||
{
|
{
|
||||||
globalMasterDU[mesh.faceZones()[masterFaceZoneID()].whichFace(masterPatchStart + i)] =
|
globalMasterDU[mesh.faceZones()[masterFaceZoneID()].whichFace(masterPatchStart + i)] =
|
||||||
masterDU[i];
|
masterDU[i];
|
||||||
}
|
}
|
||||||
//- exchange parallel data
|
//- exchange parallel data
|
||||||
reduce(globalMasterDU, sumOp<vectorField>()); // sum because each face is only on one proc
|
reduce(globalMasterDU, sumOp<vectorField>()); // sum because each face is only on one proc
|
||||||
|
|
||||||
|
@ -177,82 +178,83 @@ Foam::dirichletNeumannFriction::dirichletNeumannFriction
|
||||||
|
|
||||||
// interpolate DU from master to slave using inverse distance or ggi
|
// interpolate DU from master to slave using inverse distance or ggi
|
||||||
if(interpolationMethod == "patchToPatch")
|
if(interpolationMethod == "patchToPatch")
|
||||||
{
|
{
|
||||||
PatchToPatchInterpolation<
|
PatchToPatchInterpolation
|
||||||
PrimitivePatch<face, List, pointField>, PrimitivePatch<face, List, pointField>
|
<
|
||||||
> masterToSlavePatchToPatchInterpolator
|
PrimitivePatch<face, List, pointField>, PrimitivePatch<face, List, pointField>
|
||||||
(
|
> masterToSlavePatchToPatchInterpolator
|
||||||
masterFaceZonePatch, // from zone
|
(
|
||||||
slaveFaceZonePatch, // to zone
|
masterFaceZonePatch, // from zone
|
||||||
alg,
|
slaveFaceZonePatch, // to zone
|
||||||
dir
|
alg,
|
||||||
);
|
dir
|
||||||
globalMasterDUInterpToSlave =
|
);
|
||||||
masterToSlavePatchToPatchInterpolator.faceInterpolate<vector>
|
globalMasterDUInterpToSlave =
|
||||||
(
|
masterToSlavePatchToPatchInterpolator.faceInterpolate<vector>
|
||||||
globalMasterDU
|
(
|
||||||
);
|
globalMasterDU
|
||||||
}
|
);
|
||||||
|
}
|
||||||
else if(interpolationMethod == "ggi")
|
else if(interpolationMethod == "ggi")
|
||||||
{
|
{
|
||||||
GGIInterpolation<
|
GGIInterpolation
|
||||||
PrimitivePatch< face, List, pointField >, PrimitivePatch< face, List, pointField >
|
<
|
||||||
> masterToSlaveGgiInterpolator
|
PrimitivePatch< face, List, pointField >, PrimitivePatch< face, List, pointField >
|
||||||
(
|
> masterToSlaveGgiInterpolator
|
||||||
masterFaceZonePatch, // master zone
|
(
|
||||||
slaveFaceZonePatch, // slave zone
|
masterFaceZonePatch, // master zone
|
||||||
tensorField(0),
|
slaveFaceZonePatch, // slave zone
|
||||||
tensorField(0),
|
tensorField(0),
|
||||||
vectorField(0),
|
tensorField(0),
|
||||||
0.0,
|
vectorField(0),
|
||||||
0.0,
|
0.0,
|
||||||
true,
|
0.0,
|
||||||
ggiInterpolation::AABB
|
true,
|
||||||
);
|
ggiInterpolation::AABB
|
||||||
globalMasterDUInterpToSlave =
|
);
|
||||||
masterToSlaveGgiInterpolator.masterToSlave
|
globalMasterDUInterpToSlave =
|
||||||
(
|
masterToSlaveGgiInterpolator.masterToSlave
|
||||||
globalMasterDU
|
(
|
||||||
);
|
globalMasterDU
|
||||||
}
|
);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FatalError << "iterativePenaltyFunction::correct()\n"
|
FatalError << "iterativePenaltyFunction::correct()\n"
|
||||||
"interpolationMethod " << interpolationMethod << " not known\n"
|
"interpolationMethod " << interpolationMethod << " not known\n"
|
||||||
"interpolationMethod must be patchToPatch or ggi"
|
"interpolationMethod must be patchToPatch or ggi"
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
// now put global back into local
|
// now put global back into local
|
||||||
const label slavePatchStart
|
const label slavePatchStart =
|
||||||
= mesh.boundaryMesh()[slavePatchIndex].start();
|
mesh.boundaryMesh()[slavePatchIndex].start();
|
||||||
|
|
||||||
forAll(masterDUInterpToSlave, i)
|
forAll(masterDUInterpToSlave, i)
|
||||||
{
|
{
|
||||||
masterDUInterpToSlave[i] =
|
masterDUInterpToSlave[i] =
|
||||||
globalMasterDUInterpToSlave
|
globalMasterDUInterpToSlave
|
||||||
[
|
[
|
||||||
mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)
|
mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now masterDUInterpToSlave should have masterDU interpolated to the slave
|
// Now masterDUInterpToSlave should have masterDU interpolated to the slave
|
||||||
|
|
||||||
// calculate current slave shear traction
|
// calculate current slave shear traction
|
||||||
const fvPatch& slavePatch = mesh.boundary()[slavePatchIndex];
|
const fvPatch& slavePatch = mesh.boundary()[slavePatchIndex];
|
||||||
const fvPatchField<tensor>& gradField =
|
const fvPatchField<tensor>& gradField =
|
||||||
slavePatch.lookupPatchField<volTensorField, tensor>("grad("+fieldName+")");
|
slavePatch.lookupPatchField<volTensorField, tensor>("grad("+fieldName+")");
|
||||||
vectorField slaveShearTraction =
|
vectorField slaveShearTraction =
|
||||||
(I - sqr(slaveFaceNormals))
|
(I - sqr(slaveFaceNormals))
|
||||||
&
|
& tractionBoundaryGradient().traction
|
||||||
tractionBoundaryGradient().traction
|
(
|
||||||
(
|
gradField,
|
||||||
gradField,
|
fieldName,
|
||||||
fieldName,
|
slavePatch,
|
||||||
slavePatch,
|
orthotropic,
|
||||||
orthotropic,
|
nonLinear
|
||||||
nonLinear
|
);
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
// calculate slave shear displacement increments
|
// calculate slave shear displacement increments
|
||||||
|
@ -280,123 +282,122 @@ Foam::dirichletNeumannFriction::dirichletNeumannFriction
|
||||||
// so we make it a sticking face
|
// so we make it a sticking face
|
||||||
const scalar maxMagSlavePressure = gMax(magSlavePressure);
|
const scalar maxMagSlavePressure = gMax(magSlavePressure);
|
||||||
forAll(magSlavePressure, faceI)
|
forAll(magSlavePressure, faceI)
|
||||||
{
|
{
|
||||||
// there can only be a frictional tangential force when there is
|
// there can only be a frictional tangential force when there is
|
||||||
// a positive pressure
|
// a positive pressure
|
||||||
// if(magSlavePressure[faceI] > SMALL)
|
// if(magSlavePressure[faceI] > SMALL)
|
||||||
if(magSlavePressure[faceI] > 1e-3*maxMagSlavePressure)
|
if(magSlavePressure[faceI] > 1e-3*maxMagSlavePressure)
|
||||||
{
|
{
|
||||||
//scalar slipTrac = frictionCoeff_*magSlavePressure[faceI];
|
//scalar slipTrac = frictionCoeff_*magSlavePressure[faceI];
|
||||||
scalar slipTrac = frictionLawPtr_->slipTraction(magSlavePressure[faceI]);
|
scalar slipTrac = frictionLawPtr_->slipTraction(magSlavePressure[faceI]);
|
||||||
|
|
||||||
// slipping faces
|
// slipping faces
|
||||||
if(mag(slaveShearTraction[faceI]) > (0.99*slipTrac) )
|
if(mag(slaveShearTraction[faceI]) > (0.99*slipTrac) )
|
||||||
{
|
{
|
||||||
// direction of shear traction
|
// direction of shear traction
|
||||||
vector tracDir = slaveShearTraction[faceI] / mag(slaveShearTraction[faceI]);
|
vector tracDir = slaveShearTraction[faceI] / mag(slaveShearTraction[faceI]);
|
||||||
|
|
||||||
// slip is the difference between the master tangential DU and slave tangential DU
|
// slip is the difference between the master tangential DU and slave tangential DU
|
||||||
vector slip =
|
vector slip =
|
||||||
(I - sqr(slaveFaceNormals[faceI])) &
|
(I - sqr(slaveFaceNormals[faceI]))
|
||||||
( slaveDU[faceI] - masterDUInterpToSlave[faceI]);
|
& ( slaveDU[faceI] - masterDUInterpToSlave[faceI]);
|
||||||
|
|
||||||
// if the slip and dir are in the same direction then we will make this a
|
// if the slip and dir are in the same direction then we will make this a
|
||||||
// sticking face
|
// sticking face
|
||||||
if((tracDir & slip) > SMALL)
|
if((tracDir & slip) > SMALL)
|
||||||
{
|
{
|
||||||
//Info << "face " << faceI << " flipping direction" << endl;
|
//Info << "face " << faceI << " flipping direction" << endl;
|
||||||
numStickFaces++;
|
numStickFaces++;
|
||||||
stickSlip[faceI] = 2;
|
stickSlip[faceI] = 2;
|
||||||
|
|
||||||
// increment the slave shear displacement
|
// increment the slave shear displacement
|
||||||
// we add an increment of shear disp to the slave faces until there is no
|
// we add an increment of shear disp to the slave faces until there is no
|
||||||
// more slip
|
// more slip
|
||||||
slaveDisp_[faceI] =
|
slaveDisp_[faceI] = -1*relaxationFactor_*slip;
|
||||||
-1*relaxationFactor_ * slip;
|
|
||||||
|
|
||||||
// slaveDisp_[faceI] is the correction to the disp so we
|
// slaveDisp_[faceI] is the correction to the disp so we
|
||||||
// add on the original disp
|
// add on the original disp
|
||||||
slaveDisp_[faceI] += oldSlaveDisp[faceI];
|
slaveDisp_[faceI] += oldSlaveDisp[faceI];
|
||||||
// remove normal component
|
// remove normal component
|
||||||
slaveDisp_[faceI] = (I-sqr(slaveFaceNormals[faceI])) & slaveDisp_[faceI];
|
slaveDisp_[faceI] = (I-sqr(slaveFaceNormals[faceI])) & slaveDisp_[faceI];
|
||||||
|
|
||||||
// set slave valueFraction
|
// set slave valueFraction
|
||||||
slaveValueFrac_[faceI] =
|
slaveValueFrac_[faceI] =
|
||||||
relaxationFactor_*(I - sqr(slaveFaceNormals[faceI]))
|
relaxationFactor_*(I - sqr(slaveFaceNormals[faceI]))
|
||||||
+ (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
+ (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
||||||
|
|
||||||
// update traction as it is passed to the master
|
// update traction as it is passed to the master
|
||||||
slaveTraction_[faceI] =
|
slaveTraction_[faceI] =
|
||||||
relaxationFactor_*slaveShearTraction[faceI]
|
relaxationFactor_*slaveShearTraction[faceI]
|
||||||
+ (1-relaxationFactor_)*slaveTraction_[faceI];
|
+ (1-relaxationFactor_)*slaveTraction_[faceI];
|
||||||
}
|
}
|
||||||
// else we will limit the shear traction to slipTrac
|
// else we will limit the shear traction to slipTrac
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
numSlipFaces++;
|
numSlipFaces++;
|
||||||
stickSlip[faceI] = 1;
|
stickSlip[faceI] = 1;
|
||||||
|
|
||||||
// limit shear traction
|
// limit shear traction
|
||||||
slaveTraction_[faceI] =
|
slaveTraction_[faceI] =
|
||||||
relaxationFactor_*slipTrac*tracDir
|
relaxationFactor_*slipTrac*tracDir
|
||||||
+ (1-relaxationFactor_)*slaveTraction_[faceI];
|
+ (1-relaxationFactor_)*slaveTraction_[faceI];
|
||||||
|
|
||||||
// update slave disp although it is not used for this face
|
// update slave disp although it is not used for this face
|
||||||
// while slipping
|
// while slipping
|
||||||
slaveDisp_[faceI] = (I-sqr(slaveFaceNormals[faceI])) & oldSlaveDisp[faceI];
|
slaveDisp_[faceI] = (I-sqr(slaveFaceNormals[faceI])) & oldSlaveDisp[faceI];
|
||||||
|
|
||||||
// relax the slave valueFraction to zero
|
// relax the slave valueFraction to zero
|
||||||
//slaveValueFrac_[faceI] = (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
//slaveValueFrac_[faceI] = (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
||||||
slaveValueFrac_[faceI] = symmTensor::zero;
|
slaveValueFrac_[faceI] = symmTensor::zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// sticking faces
|
// sticking faces
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
numStickFaces++;
|
numStickFaces++;
|
||||||
stickSlip[faceI] = 2;
|
stickSlip[faceI] = 2;
|
||||||
|
|
||||||
// slip is the difference of the tangential DU between the master and slave
|
// slip is the difference of the tangential DU between the master and slave
|
||||||
vector slip =
|
vector slip =
|
||||||
(I - sqr(slaveFaceNormals[faceI])) &
|
(I - sqr(slaveFaceNormals[faceI]))
|
||||||
(slaveDU[faceI] - masterDUInterpToSlave[faceI]);
|
& (slaveDU[faceI] - masterDUInterpToSlave[faceI]);
|
||||||
|
|
||||||
// increment the slave shear displacement
|
// increment the slave shear displacement
|
||||||
// we add an increment of shear disp to the slave faces until there is no
|
// we add an increment of shear disp to the slave faces until there is no
|
||||||
// more slip
|
// more slip
|
||||||
slaveDisp_[faceI] = -1*relaxationFactor_*slip;
|
slaveDisp_[faceI] = -1*relaxationFactor_*slip;
|
||||||
// slaveDisp_[faceI] is the correction to the disp so we
|
// slaveDisp_[faceI] is the correction to the disp so we
|
||||||
// add on the original disp
|
// add on the original disp
|
||||||
slaveDisp_[faceI] += oldSlaveDisp[faceI];
|
slaveDisp_[faceI] += oldSlaveDisp[faceI];
|
||||||
// remove normal component
|
// remove normal component
|
||||||
slaveDisp_[faceI] = (I-sqr(slaveFaceNormals[faceI])) & slaveDisp_[faceI];
|
slaveDisp_[faceI] = (I-sqr(slaveFaceNormals[faceI])) & slaveDisp_[faceI];
|
||||||
|
|
||||||
// set slave valueFraction
|
// set slave valueFraction
|
||||||
slaveValueFrac_[faceI] =
|
slaveValueFrac_[faceI] =
|
||||||
relaxationFactor_*(I - sqr(slaveFaceNormals[faceI]))
|
relaxationFactor_*(I - sqr(slaveFaceNormals[faceI]))
|
||||||
+ (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
+ (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
||||||
|
|
||||||
// update traction as it is passed to the master
|
// update traction as it is passed to the master
|
||||||
slaveTraction_[faceI] =
|
slaveTraction_[faceI] =
|
||||||
relaxationFactor_*slaveShearTraction[faceI]
|
relaxationFactor_*slaveShearTraction[faceI]
|
||||||
+ (1-relaxationFactor_)*slaveTraction_[faceI];
|
+ (1-relaxationFactor_)*slaveTraction_[faceI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// no friction if pressure is negative or zero
|
// no friction if pressure is negative or zero
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
stickSlip[faceI] = 0;
|
stickSlip[faceI] = 0;
|
||||||
// relax to zero
|
// relax to zero
|
||||||
slaveTraction_[faceI] = (1.0 - relaxationFactor_)*slaveTraction_[faceI];
|
slaveTraction_[faceI] = (1.0 - relaxationFactor_)*slaveTraction_[faceI];
|
||||||
slaveValueFrac_[faceI] = (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
slaveValueFrac_[faceI] = (1.0 - relaxationFactor_)*slaveValueFrac_[faceI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// correct oscillations
|
// correct oscillations
|
||||||
if(oscillationCorr_)
|
if(oscillationCorr_)
|
||||||
{
|
{
|
||||||
correctOscillations(slaveFaceZonePatch);
|
correctOscillations(slaveFaceZonePatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
// get global values
|
// get global values
|
||||||
// in parallel, the log is poluted with warnings that
|
// in parallel, the log is poluted with warnings that
|
||||||
|
@ -412,28 +413,28 @@ Foam::dirichletNeumannFriction::dirichletNeumannFriction
|
||||||
|
|
||||||
// master writes to contact info file
|
// master writes to contact info file
|
||||||
if(Pstream::master() && (contactIterNum_ % infoFreq_ == 0))
|
if(Pstream::master() && (contactIterNum_ % infoFreq_ == 0))
|
||||||
{
|
{
|
||||||
OFstream& contactFile = *contactFilePtr_;
|
OFstream& contactFile = *contactFilePtr_;
|
||||||
int width = 20;
|
int width = 20;
|
||||||
contactFile << mesh.time().value();
|
contactFile << mesh.time().value();
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << contactIterNum_;
|
contactFile << contactIterNum_;
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << relaxationFactor_;
|
contactFile << relaxationFactor_;
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << numSlipFaces;
|
contactFile << numSlipFaces;
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << numStickFaces;
|
contactFile << numStickFaces;
|
||||||
contactFile.width(width);
|
contactFile.width(width);
|
||||||
contactFile << maxMagMasterTraction << endl;
|
contactFile << maxMagMasterTraction << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Foam::dirichletNeumannFriction::correctOscillations
|
void Foam::dirichletNeumannFriction::correctOscillations
|
||||||
(
|
(
|
||||||
const PrimitivePatch<face, List, pointField>& slaveFaceZonePatch
|
const PrimitivePatch<face, List, pointField>& slaveFaceZonePatch
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// oscillations sometimes appear in contact shear displacements/tractions
|
// oscillations sometimes appear in contact shear displacements/tractions
|
||||||
// so we will try to limit them here
|
// so we will try to limit them here
|
||||||
// we will weight the current face slaveDisp/Traction with the average of the
|
// we will weight the current face slaveDisp/Traction with the average of the
|
||||||
|
@ -451,17 +452,17 @@ Foam::dirichletNeumannFriction::dirichletNeumannFriction
|
||||||
vectorField globalSlaveDisp(slaveFaceZonePatch.size(), vector::zero);
|
vectorField globalSlaveDisp(slaveFaceZonePatch.size(), vector::zero);
|
||||||
// symmTensorField globalSlaveValueFrac(slaveFaceZonePatch.size(), symmTensor::zero);
|
// symmTensorField globalSlaveValueFrac(slaveFaceZonePatch.size(), symmTensor::zero);
|
||||||
scalarField globalStickSlip(slaveFaceZonePatch.size(), 0.0);
|
scalarField globalStickSlip(slaveFaceZonePatch.size(), 0.0);
|
||||||
const label slavePatchStart
|
const label slavePatchStart =
|
||||||
= mesh.boundaryMesh()[slavePatchIndex].start();
|
mesh.boundaryMesh()[slavePatchIndex].start();
|
||||||
forAll(slaveTraction_, i)
|
forAll(slaveTraction_, i)
|
||||||
{
|
{
|
||||||
// globalSlaveTraction[mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)] =
|
// globalSlaveTraction[mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)] =
|
||||||
// slaveTraction_[i];
|
// slaveTraction_[i];
|
||||||
globalSlaveDisp[mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)] =
|
globalSlaveDisp[mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)] =
|
||||||
slaveDisp_[i];
|
slaveDisp_[i];
|
||||||
globalStickSlip[mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)] =
|
globalStickSlip[mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + i)] =
|
||||||
stickSlip[i];
|
stickSlip[i];
|
||||||
}
|
}
|
||||||
// sum because each face is only on one proc
|
// sum because each face is only on one proc
|
||||||
//reduce(globalSlaveTraction, sumOp<vectorField>());
|
//reduce(globalSlaveTraction, sumOp<vectorField>());
|
||||||
reduce(globalSlaveDisp, sumOp<vectorField>());
|
reduce(globalSlaveDisp, sumOp<vectorField>());
|
||||||
|
@ -469,78 +470,78 @@ Foam::dirichletNeumannFriction::dirichletNeumannFriction
|
||||||
|
|
||||||
// smooth mag of slaveTraction with face face disps
|
// smooth mag of slaveTraction with face face disps
|
||||||
forAll(faceFaces, facei)
|
forAll(faceFaces, facei)
|
||||||
{
|
{
|
||||||
// only smooth sticking faces
|
// only smooth sticking faces
|
||||||
//if(mag(globalSlaveValueFrac[facei]) > SMALL)
|
//if(mag(globalSlaveValueFrac[facei]) > SMALL)
|
||||||
if(mag(globalStickSlip[facei] - 2.0) < SMALL)
|
if(mag(globalStickSlip[facei] - 2.0) < SMALL)
|
||||||
{
|
{
|
||||||
//vector avTrac = vector::zero;
|
//vector avTrac = vector::zero;
|
||||||
vector avDisp = vector::zero;
|
vector avDisp = vector::zero;
|
||||||
int numNei = 0;
|
int numNei = 0;
|
||||||
forAll(faceFaces[facei], ffi)
|
forAll(faceFaces[facei], ffi)
|
||||||
{
|
{
|
||||||
label faceFace = faceFaces[facei][ffi];
|
label faceFace = faceFaces[facei][ffi];
|
||||||
|
|
||||||
// only include other sticking faces
|
// only include other sticking faces
|
||||||
if( mag(globalStickSlip[faceFace] - 2.0) < SMALL )
|
if( mag(globalStickSlip[faceFace] - 2.0) < SMALL )
|
||||||
{
|
{
|
||||||
avDisp += globalSlaveDisp[faceFace];
|
avDisp += globalSlaveDisp[faceFace];
|
||||||
numNei++;
|
numNei++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// avTracMag /= numNei;
|
// avTracMag /= numNei;
|
||||||
//avTrac /= numNei;
|
//avTrac /= numNei;
|
||||||
// if(numNei > 0)
|
// if(numNei > 0)
|
||||||
if(numNei > 1)
|
if(numNei > 1)
|
||||||
{
|
{
|
||||||
avDisp /= numNei;
|
avDisp /= numNei;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
avDisp = globalSlaveDisp[facei];
|
avDisp = globalSlaveDisp[facei];
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(numFaceFaces == 1)
|
// if(numFaceFaces == 1)
|
||||||
// {
|
// {
|
||||||
// // for corner/end faces, decrease the weight of the neighbours
|
// // for corner/end faces, decrease the weight of the neighbours
|
||||||
// avTracMag += globalSlaveTraction[facei];
|
// avTracMag += globalSlaveTraction[facei];
|
||||||
// avTracMag /= 2;
|
// avTracMag /= 2;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// weighted-average with face-faces
|
// weighted-average with face-faces
|
||||||
// globalSlaveTraction[facei] =
|
// globalSlaveTraction[facei] =
|
||||||
// oscillationCorrFac_*globalSlaveTraction[facei] + (1.0-oscillationCorrFac_)*avTrac;
|
// oscillationCorrFac_*globalSlaveTraction[facei] + (1.0-oscillationCorrFac_)*avTrac;
|
||||||
globalSlaveDisp[facei] =
|
globalSlaveDisp[facei] =
|
||||||
oscillationCorrFac_*globalSlaveDisp[facei] + (1.0-oscillationCorrFac_)*avDisp;
|
oscillationCorrFac_*globalSlaveDisp[facei] + (1.0-oscillationCorrFac_)*avDisp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert global back to local
|
// convert global back to local
|
||||||
forAll(slaveTraction_, facei)
|
forAll(slaveTraction_, facei)
|
||||||
{
|
{
|
||||||
// slaveTraction_[facei] =
|
// slaveTraction_[facei] =
|
||||||
// globalSlaveTraction
|
// globalSlaveTraction
|
||||||
// [
|
// [
|
||||||
// mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + facei)
|
// mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + facei)
|
||||||
// ];
|
// ];
|
||||||
slaveDisp_[facei] =
|
slaveDisp_[facei] =
|
||||||
globalSlaveDisp
|
globalSlaveDisp
|
||||||
[
|
[
|
||||||
mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + facei)
|
mesh.faceZones()[slaveFaceZoneID()].whichFace(slavePatchStart + facei)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
//Pout << "\tdone" << endl;
|
//Pout << "\tdone" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::dirichletNeumannFriction::writeDict(Ostream& os) const
|
void Foam::dirichletNeumannFriction::writeDict(Ostream& os) const
|
||||||
{
|
{
|
||||||
word keyword(name()+"FrictionModelDict");
|
word keyword(name()+"FrictionModelDict");
|
||||||
os.writeKeyword(keyword)
|
os.writeKeyword(keyword)
|
||||||
<< frictionContactModelDict_;
|
<< frictionContactModelDict_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
|
@ -24,40 +24,40 @@ fvMesh solidMesh
|
||||||
// if (isA<symmetryPolyPatch>(solidMesh.boundaryMesh()[patchI]))
|
// if (isA<symmetryPolyPatch>(solidMesh.boundaryMesh()[patchI]))
|
||||||
// {
|
// {
|
||||||
// const labelList& meshPoints =
|
// const labelList& meshPoints =
|
||||||
// solidMesh.boundaryMesh()[patchI].meshPoints();
|
// solidMesh.boundaryMesh()[patchI].meshPoints();
|
||||||
|
|
||||||
// vector avgN =
|
// vector avgN =
|
||||||
// gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
// gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
||||||
|
|
||||||
// vector i(1, 0, 0);
|
// vector i(1, 0, 0);
|
||||||
// vector j(0, 1, 0);
|
// vector j(0, 1, 0);
|
||||||
// vector k(0, 0, 1);
|
// vector k(0, 0, 1);
|
||||||
|
|
||||||
// if (mag(avgN&i) > 0.95)
|
// if (mag(avgN&i) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].x() = 0;
|
// newPoints[meshPoints[pI]].x() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// else if (mag(avgN&j) > 0.95)
|
// else if (mag(avgN&j) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].y() = 0;
|
// newPoints[meshPoints[pI]].y() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// else if (mag(avgN&k) > 0.95)
|
// else if (mag(avgN&k) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].z() = 0;
|
// newPoints[meshPoints[pI]].z() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// avgN = gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
// avgN = gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
||||||
|
|
||||||
// Pout << "avgN = " << avgN << endl;
|
// Pout << "avgN = " << avgN << endl;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
|
@ -24,40 +24,40 @@ fvMesh solidMesh
|
||||||
// if (isA<symmetryPolyPatch>(solidMesh.boundaryMesh()[patchI]))
|
// if (isA<symmetryPolyPatch>(solidMesh.boundaryMesh()[patchI]))
|
||||||
// {
|
// {
|
||||||
// const labelList& meshPoints =
|
// const labelList& meshPoints =
|
||||||
// solidMesh.boundaryMesh()[patchI].meshPoints();
|
// solidMesh.boundaryMesh()[patchI].meshPoints();
|
||||||
|
|
||||||
// vector avgN =
|
// vector avgN =
|
||||||
// gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
// gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
||||||
|
|
||||||
// vector i(1, 0, 0);
|
// vector i(1, 0, 0);
|
||||||
// vector j(0, 1, 0);
|
// vector j(0, 1, 0);
|
||||||
// vector k(0, 0, 1);
|
// vector k(0, 0, 1);
|
||||||
|
|
||||||
// if (mag(avgN&i) > 0.95)
|
// if (mag(avgN&i) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].x() = 0;
|
// newPoints[meshPoints[pI]].x() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// else if (mag(avgN&j) > 0.95)
|
// else if (mag(avgN&j) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].y() = 0;
|
// newPoints[meshPoints[pI]].y() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// else if (mag(avgN&k) > 0.95)
|
// else if (mag(avgN&k) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].z() = 0;
|
// newPoints[meshPoints[pI]].z() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// avgN = gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
// avgN = gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
||||||
|
|
||||||
// Pout << "avgN = " << avgN << endl;
|
// Pout << "avgN = " << avgN << endl;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
|
@ -22,40 +22,40 @@ fvMesh solidMesh
|
||||||
// if (isA<symmetryPolyPatch>(solidMesh.boundaryMesh()[patchI]))
|
// if (isA<symmetryPolyPatch>(solidMesh.boundaryMesh()[patchI]))
|
||||||
// {
|
// {
|
||||||
// const labelList& meshPoints =
|
// const labelList& meshPoints =
|
||||||
// solidMesh.boundaryMesh()[patchI].meshPoints();
|
// solidMesh.boundaryMesh()[patchI].meshPoints();
|
||||||
|
|
||||||
// vector avgN =
|
// vector avgN =
|
||||||
// gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
// gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
||||||
|
|
||||||
// vector i(1, 0, 0);
|
// vector i(1, 0, 0);
|
||||||
// vector j(0, 1, 0);
|
// vector j(0, 1, 0);
|
||||||
// vector k(0, 0, 1);
|
// vector k(0, 0, 1);
|
||||||
|
|
||||||
// if (mag(avgN&i) > 0.95)
|
// if (mag(avgN&i) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].x() = 0;
|
// newPoints[meshPoints[pI]].x() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// else if (mag(avgN&j) > 0.95)
|
// else if (mag(avgN&j) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].y() = 0;
|
// newPoints[meshPoints[pI]].y() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// else if (mag(avgN&k) > 0.95)
|
// else if (mag(avgN&k) > 0.95)
|
||||||
// {
|
// {
|
||||||
// forAll(meshPoints, pI)
|
// forAll(meshPoints, pI)
|
||||||
// {
|
// {
|
||||||
// newPoints[meshPoints[pI]].z() = 0;
|
// newPoints[meshPoints[pI]].z() = 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// avgN = gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
// avgN = gAverage(solidMesh.boundaryMesh()[patchI].pointNormals());
|
||||||
|
|
||||||
// Pout << "avgN = " << avgN << endl;
|
// Pout << "avgN = " << avgN << endl;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
fvScalarMatrix iEqn
|
fvScalarMatrix iEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(rho, i)
|
fvm::ddt(rho, i)
|
||||||
+ fvm::div(phi, i)
|
+ fvm::div(phi, i)
|
||||||
- fvm::laplacian(turbulence->alphaEff(), i)
|
- fvm::laplacian(turbulence->alphaEff(), i)
|
||||||
==
|
==
|
||||||
|
|
|
@ -420,7 +420,7 @@ void Foam::decompositionMethod::fixCyclics
|
||||||
) << "Fixed " << nFixedCyclics << " disconnected cyclic faces";
|
) << "Fixed " << nFixedCyclics << " disconnected cyclic faces";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (nFixedCyclics > 0);
|
while (nFixedCyclics > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ public:
|
||||||
//- Return the solid-body motion transformation septernion
|
//- Return the solid-body motion transformation septernion
|
||||||
virtual septernion transformation() const;
|
virtual septernion transformation() const;
|
||||||
|
|
||||||
//- Return the solid-body motion velocity
|
//- Return the solid-body motion velocity
|
||||||
virtual septernion velocity() const;
|
virtual septernion velocity() const;
|
||||||
|
|
||||||
//- Update properties from given dictionary
|
//- Update properties from given dictionary
|
||||||
|
|
|
@ -125,7 +125,7 @@ public:
|
||||||
//- Return the solid-body motion transformation septernion
|
//- Return the solid-body motion transformation septernion
|
||||||
virtual septernion transformation() const;
|
virtual septernion transformation() const;
|
||||||
|
|
||||||
//- Return the solid-body motion velocity
|
//- Return the solid-body motion velocity
|
||||||
virtual septernion velocity() const;
|
virtual septernion velocity() const;
|
||||||
|
|
||||||
//- Update properties from given dictionary
|
//- Update properties from given dictionary
|
||||||
|
|
|
@ -148,7 +148,7 @@ public:
|
||||||
//- Return the solid-body motion transformation septernion
|
//- Return the solid-body motion transformation septernion
|
||||||
virtual septernion transformation() const;
|
virtual septernion transformation() const;
|
||||||
|
|
||||||
//- Return the solid-body motion velocity
|
//- Return the solid-body motion velocity
|
||||||
virtual septernion velocity() const;
|
virtual septernion velocity() const;
|
||||||
|
|
||||||
//- Update properties from given dictionary
|
//- Update properties from given dictionary
|
||||||
|
|
|
@ -131,7 +131,7 @@ public:
|
||||||
//- Return the solid-body motion transformation septernion
|
//- Return the solid-body motion transformation septernion
|
||||||
virtual septernion transformation() const;
|
virtual septernion transformation() const;
|
||||||
|
|
||||||
//- Return the solid-body motion velocity
|
//- Return the solid-body motion velocity
|
||||||
virtual septernion velocity() const;
|
virtual septernion velocity() const;
|
||||||
|
|
||||||
//- Update properties from given dictionary
|
//- Update properties from given dictionary
|
||||||
|
|
|
@ -107,7 +107,7 @@ public:
|
||||||
//- Return the solid-body motion transformation septernion
|
//- Return the solid-body motion transformation septernion
|
||||||
virtual septernion transformation() const;
|
virtual septernion transformation() const;
|
||||||
|
|
||||||
//- Return the solid-body motion velocity
|
//- Return the solid-body motion velocity
|
||||||
virtual septernion velocity() const;
|
virtual septernion velocity() const;
|
||||||
|
|
||||||
//- Update properties from given dictionary
|
//- Update properties from given dictionary
|
||||||
|
|
|
@ -128,11 +128,11 @@ public:
|
||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return reference to GGI patch
|
//- Return reference to GGI patch
|
||||||
const ggiFvPatch& ggiPatch() const
|
const ggiFvPatch& ggiPatch() const
|
||||||
{
|
{
|
||||||
return ggiPatch_;
|
return ggiPatch_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return shadow patch field
|
//- Return shadow patch field
|
||||||
const ggiFvPatchField<Type>& shadowPatchField() const;
|
const ggiFvPatchField<Type>& shadowPatchField() const;
|
||||||
|
|
|
@ -124,24 +124,23 @@ void jumpGgiFvPatchField<Type>::initInterfaceMatrixUpdate
|
||||||
scalarField sField(sfc.size());
|
scalarField sField(sfc.size());
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
reinterpret_cast<const void*>(&psiInternal)
|
reinterpret_cast<const void*>(&psiInternal)
|
||||||
== reinterpret_cast<const void*>(&this->internalField())
|
== reinterpret_cast<const void*>(&this->internalField())
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const scalarField jf = jump()().component(cmpt);
|
const scalarField jf = jump()().component(cmpt);
|
||||||
|
|
||||||
forAll (sField, i)
|
forAll (sField, i)
|
||||||
{
|
{
|
||||||
sField[i] = psiInternal[sfc[i]] + jf[i];
|
sField[i] = psiInternal[sfc[i]] + jf[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
forAll (sField, i)
|
||||||
forAll (sField, i)
|
{
|
||||||
{
|
|
||||||
sField[i] = psiInternal[sfc[i]];
|
sField[i] = psiInternal[sfc[i]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
scalarField pnf = this->ggiPatch().interpolate(sField);
|
scalarField pnf = this->ggiPatch().interpolate(sField);
|
||||||
|
|
|
@ -88,27 +88,27 @@ bool Foam::dlLibraryTable::open(const fileName& functionLibName)
|
||||||
// Capitan) with System Integrity Protection (SIP) enabled, let's try
|
// Capitan) with System Integrity Protection (SIP) enabled, let's try
|
||||||
// building a full path using well-known environment variables. This is
|
// building a full path using well-known environment variables. This is
|
||||||
// the last resort, unless you provide the full pathname yourself.
|
// the last resort, unless you provide the full pathname yourself.
|
||||||
if (!functionLibPtr)
|
if (!functionLibPtr)
|
||||||
{
|
{
|
||||||
fileName l_LIBBIN_Name =
|
fileName l_LIBBIN_Name =
|
||||||
getEnv("FOAM_LIBBIN")/osxFileName;
|
getEnv("FOAM_LIBBIN")/osxFileName;
|
||||||
functionLibPtr =
|
functionLibPtr =
|
||||||
dlopen(l_LIBBIN_Name.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
dlopen(l_LIBBIN_Name.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
||||||
}
|
}
|
||||||
if (!functionLibPtr)
|
if (!functionLibPtr)
|
||||||
{
|
{
|
||||||
fileName l_SITE_LIBBIN_Name =
|
fileName l_SITE_LIBBIN_Name =
|
||||||
getEnv("FOAM_SITE_LIBBIN")/osxFileName;
|
getEnv("FOAM_SITE_LIBBIN")/osxFileName;
|
||||||
functionLibPtr =
|
functionLibPtr =
|
||||||
dlopen(l_SITE_LIBBIN_Name.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
dlopen(l_SITE_LIBBIN_Name.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
||||||
}
|
}
|
||||||
if (!functionLibPtr)
|
if (!functionLibPtr)
|
||||||
{
|
{
|
||||||
fileName l_USER_LIBBIN_Name =
|
fileName l_USER_LIBBIN_Name =
|
||||||
getEnv("FOAM_USER_LIBBIN")/osxFileName;
|
getEnv("FOAM_USER_LIBBIN")/osxFileName;
|
||||||
functionLibPtr =
|
functionLibPtr =
|
||||||
dlopen(l_USER_LIBBIN_Name.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
dlopen(l_USER_LIBBIN_Name.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
||||||
}
|
}
|
||||||
#elif defined mingw
|
#elif defined mingw
|
||||||
if(!functionLibPtr && functionLibName.ext()=="so") {
|
if(!functionLibPtr && functionLibName.ext()=="so") {
|
||||||
fileName lName=functionLibName.lessExt()+".dll";
|
fileName lName=functionLibName.lessExt()+".dll";
|
||||||
|
|
|
@ -111,8 +111,8 @@ public:
|
||||||
//- Construct from components
|
//- Construct from components
|
||||||
inline pengRobinson
|
inline pengRobinson
|
||||||
(
|
(
|
||||||
const specie& sp
|
const specie& sp
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from Istream
|
//- Construct from Istream
|
||||||
pengRobinson(Istream&);
|
pengRobinson(Istream&);
|
||||||
|
|
|
@ -112,11 +112,11 @@ class constantHeatCapacity
|
||||||
scalar Cp0_;
|
scalar Cp0_;
|
||||||
//CL: molar values
|
//CL: molar values
|
||||||
scalar cp0_;
|
scalar cp0_;
|
||||||
scalar e0_std;
|
scalar e0_std;
|
||||||
scalar s0_std;
|
scalar s0_std;
|
||||||
scalar integral_p_dv_std;
|
scalar integral_p_dv_std;
|
||||||
scalar integral_dpdT_dv_std;
|
scalar integral_dpdT_dv_std;
|
||||||
scalar cp_std;
|
scalar cp_std;
|
||||||
|
|
||||||
// Private member functions
|
// Private member functions
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ class constantHeatCapacity
|
||||||
(
|
(
|
||||||
const equationOfState& st,
|
const equationOfState& st,
|
||||||
const scalar cp0_
|
const scalar cp0_
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from components
|
//- Construct from components
|
||||||
//CL: used for the operator*
|
//CL: used for the operator*
|
||||||
|
@ -160,7 +160,7 @@ public:
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- perfect Gas Enthalpy [J/kmol]
|
//- perfect Gas Enthalpy [J/kmol]
|
||||||
inline scalar h0(const scalar T) const;
|
inline scalar h0(const scalar T) const;
|
||||||
|
|
||||||
//- perfect Gas Entropy [J/(kmol K)]
|
//- perfect Gas Entropy [J/(kmol K)]
|
||||||
|
@ -179,7 +179,7 @@ public:
|
||||||
inline scalar cp(const scalar rho, const scalar T) const;
|
inline scalar cp(const scalar rho, const scalar T) const;
|
||||||
|
|
||||||
//- non Limited Heat capacity at constant pressure [J/(kmol K)]
|
//- non Limited Heat capacity at constant pressure [J/(kmol K)]
|
||||||
inline scalar cp_nonLimited(const scalar rho, const scalar T) const;
|
inline scalar cp_nonLimited(const scalar rho, const scalar T) const;
|
||||||
|
|
||||||
//- Heat capacity at constant pressure [J/(kmol K)]
|
//- Heat capacity at constant pressure [J/(kmol K)]
|
||||||
inline scalar cv(const scalar rho, const scalar T) const;
|
inline scalar cv(const scalar rho, const scalar T) const;
|
||||||
|
|
|
@ -222,7 +222,6 @@ inline Foam::scalar Foam::constantHeatCapacity<equationOfState>::cv
|
||||||
(
|
(
|
||||||
const scalar rho,
|
const scalar rho,
|
||||||
const scalar T
|
const scalar T
|
||||||
|
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return this->cv0(T) + T*this->integral_d2pdT2_dv(rho, T);
|
return this->cv0(T) + T*this->integral_d2pdT2_dv(rho, T);
|
||||||
|
@ -273,7 +272,6 @@ inline Foam::scalar Foam::constantHeatCapacity<equationOfState>::s
|
||||||
(
|
(
|
||||||
const scalar rho,
|
const scalar rho,
|
||||||
const scalar T
|
const scalar T
|
||||||
|
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
|
@ -293,7 +291,6 @@ inline void Foam::constantHeatCapacity<equationOfState>::operator+=
|
||||||
const constantHeatCapacity<equationOfState>& np
|
const constantHeatCapacity<equationOfState>& np
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
scalar molr1 = this->nMoles();
|
scalar molr1 = this->nMoles();
|
||||||
|
|
||||||
equationOfState::operator+=(np);
|
equationOfState::operator+=(np);
|
||||||
|
|
|
@ -18,86 +18,85 @@ convertToMeters 0.001;
|
||||||
|
|
||||||
vertices
|
vertices
|
||||||
(
|
(
|
||||||
(0 0 0) //0
|
(0 0 0) //0
|
||||||
(120 0 0) //1
|
(120 0 0) //1
|
||||||
(280 0 0) //2
|
(280 0 0) //2
|
||||||
(600 0 0) //3
|
(600 0 0) //3
|
||||||
(2500 0 0) //4
|
(2500 0 0) //4
|
||||||
(0 120 0) //5
|
(0 120 0) //5
|
||||||
(120 120 0) //6
|
(120 120 0) //6
|
||||||
(280 120 0)//7
|
(280 120 0)//7
|
||||||
(600 120 0) //8
|
(600 120 0) //8
|
||||||
(2500 120 0) //9
|
(2500 120 0) //9
|
||||||
(164.6447 164.6447 0)//10
|
(164.6447 164.6447 0)//10
|
||||||
(235.3553 164.6447 0)//11
|
(235.3553 164.6447 0)//11
|
||||||
(248.9898 190 0) //12
|
(248.9898 190 0) //12
|
||||||
(299.5733 190 0) //13
|
(299.5733 190 0) //13
|
||||||
(600 190 0) //14
|
(600 190 0) //14
|
||||||
(2500 190 0) //15
|
(2500 190 0) //15
|
||||||
(164.6447 235.355 0) //16
|
(164.6447 235.355 0) //16
|
||||||
(235.3553 235.355 0) //17
|
(235.3553 235.355 0) //17
|
||||||
(248.9898 210 0) //18
|
(248.9898 210 0) //18
|
||||||
(299.5733 210 0) //19
|
(299.5733 210 0) //19
|
||||||
(600 210 0) //20
|
(600 210 0) //20
|
||||||
(2500 210 0) //21
|
(2500 210 0) //21
|
||||||
(0 280 0) //22
|
(0 280 0) //22
|
||||||
(120 280 0) //23
|
(120 280 0) //23
|
||||||
(280 280 0)//24
|
(280 280 0)//24
|
||||||
(600 280 0) //25
|
(600 280 0) //25
|
||||||
(2500 280 0) //26
|
(2500 280 0) //26
|
||||||
(0 410 0) //27
|
(0 410 0) //27
|
||||||
(120 410 0) //28
|
(120 410 0) //28
|
||||||
(280 410 0) //29
|
(280 410 0) //29
|
||||||
(600 410 0) //30
|
(600 410 0) //30
|
||||||
(2500 410 0) //31
|
(2500 410 0) //31
|
||||||
|
|
||||||
(0 0 15) //32
|
(0 0 15) //32
|
||||||
(120 0 15) //33
|
(120 0 15) //33
|
||||||
(280 0 15) //34
|
(280 0 15) //34
|
||||||
(600 0 15) //35
|
(600 0 15) //35
|
||||||
(2500 0 15) //36
|
(2500 0 15) //36
|
||||||
(0 120 15) //37
|
(0 120 15) //37
|
||||||
(120 120 15) //38
|
(120 120 15) //38
|
||||||
(280 120 15)//39
|
(280 120 15)//39
|
||||||
(600 120 15) //40
|
(600 120 15) //40
|
||||||
(2500 120 15) //41
|
(2500 120 15) //41
|
||||||
(164.6447 164.6447 15)//42
|
(164.6447 164.6447 15)//42
|
||||||
(235.3553 164.6447 15)//43
|
(235.3553 164.6447 15)//43
|
||||||
(248.9898 190 15) //44
|
(248.9898 190 15) //44
|
||||||
(299.5733 190 15) //45
|
(299.5733 190 15) //45
|
||||||
(600 190 15) //46
|
(600 190 15) //46
|
||||||
(2500 190 15) //47
|
(2500 190 15) //47
|
||||||
(164.6447 235.355 15) //48
|
(164.6447 235.355 15) //48
|
||||||
(235.3553 235.355 15) //49
|
(235.3553 235.355 15) //49
|
||||||
(248.9898 210 15) //50
|
(248.9898 210 15) //50
|
||||||
(299.5733 210 15) //51
|
(299.5733 210 15) //51
|
||||||
(600 210 15) //52
|
(600 210 15) //52
|
||||||
(2500 210 15) //53
|
(2500 210 15) //53
|
||||||
(0 280 15) //54
|
(0 280 15) //54
|
||||||
(120 280 15) //55
|
(120 280 15) //55
|
||||||
(280 280 15)//56
|
(280 280 15)//56
|
||||||
(600 280 15) //57
|
(600 280 15) //57
|
||||||
(2500 280 15) //58
|
(2500 280 15) //58
|
||||||
(0 410 15) //59
|
(0 410 15) //59
|
||||||
(120 410 15) //60
|
(120 410 15) //60
|
||||||
(280 410 15) //61
|
(280 410 15) //61
|
||||||
(600 410 15) //62
|
(600 410 15) //62
|
||||||
(2500 410 15) //63
|
(2500 410 15) //63
|
||||||
|
|
||||||
(1000 0 0) //64
|
(1000 0 0) //64
|
||||||
(1000 120 0) //65
|
(1000 120 0) //65
|
||||||
(1000 190 0) //66
|
(1000 190 0) //66
|
||||||
(1000 210 0) //67
|
(1000 210 0) //67
|
||||||
(1000 280 0) //68
|
(1000 280 0) //68
|
||||||
(1000 410 0) //69
|
(1000 410 0) //69
|
||||||
|
|
||||||
(1000 0 15) //70
|
|
||||||
(1000 120 15) //71
|
|
||||||
(1000 190 15) //72
|
|
||||||
(1000 210 15) //73
|
|
||||||
(1000 280 15) //74
|
|
||||||
(1000 410 15) //75
|
|
||||||
|
|
||||||
|
(1000 0 15) //70
|
||||||
|
(1000 120 15) //71
|
||||||
|
(1000 190 15) //72
|
||||||
|
(1000 210 15) //73
|
||||||
|
(1000 280 15) //74
|
||||||
|
(1000 410 15) //75
|
||||||
);
|
);
|
||||||
|
|
||||||
blocks
|
blocks
|
||||||
|
@ -159,116 +158,114 @@ edges
|
||||||
|
|
||||||
arc 13 7 (288.2725 141.3043 0)
|
arc 13 7 (288.2725 141.3043 0)
|
||||||
arc 45 39 (288.2725 141.3043 15)
|
arc 45 39 (288.2725 141.3043 15)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
patches
|
patches
|
||||||
(
|
(
|
||||||
patch plate
|
patch plate
|
||||||
(
|
(
|
||||||
(19 18 50 51)
|
(19 18 50 51)
|
||||||
(20 19 51 52)
|
(20 19 51 52)
|
||||||
(20 52 46 14)
|
(20 52 46 14)
|
||||||
(13 14 46 45)
|
(13 14 46 45)
|
||||||
(12 13 45 44)
|
(12 13 45 44)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch outlet
|
patch outlet
|
||||||
(
|
(
|
||||||
(63 31 26 58)
|
(63 31 26 58)
|
||||||
(58 26 21 53)
|
(58 26 21 53)
|
||||||
(53 21 15 47)
|
(53 21 15 47)
|
||||||
(47 15 9 41)
|
(47 15 9 41)
|
||||||
(41 9 4 36)
|
(41 9 4 36)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch inlet
|
patch inlet
|
||||||
(
|
(
|
||||||
(27 59 54 22)
|
(27 59 54 22)
|
||||||
(22 54 37 5)
|
(22 54 37 5)
|
||||||
(5 37 32 0)
|
(5 37 32 0)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch cylinder
|
patch cylinder
|
||||||
(
|
(
|
||||||
(16 48 49 17)
|
(16 48 49 17)
|
||||||
(17 49 50 18)
|
(17 49 50 18)
|
||||||
(10 42 48 16)
|
(10 42 48 16)
|
||||||
(11 43 42 10)
|
(11 43 42 10)
|
||||||
(12 44 43 11)
|
(12 44 43 11)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch bottom
|
patch bottom
|
||||||
(
|
(
|
||||||
(1 0 32 33)
|
(1 0 32 33)
|
||||||
(2 1 33 34)
|
(2 1 33 34)
|
||||||
(3 2 34 35)
|
(3 2 34 35)
|
||||||
(64 3 35 70)
|
(64 3 35 70)
|
||||||
(4 64 70 36)
|
(4 64 70 36)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch top
|
patch top
|
||||||
(
|
(
|
||||||
(27 28 60 59)
|
(27 28 60 59)
|
||||||
(28 29 61 60)
|
(28 29 61 60)
|
||||||
(29 30 62 61)
|
(29 30 62 61)
|
||||||
(30 69 75 62)
|
(30 69 75 62)
|
||||||
(69 31 63 75)
|
(69 31 63 75)
|
||||||
)
|
)
|
||||||
|
|
||||||
empty frontAndBackPlanes
|
empty frontAndBackPlanes
|
||||||
(
|
(
|
||||||
(22 23 28 27)
|
(22 23 28 27)
|
||||||
(23 24 29 28)
|
(23 24 29 28)
|
||||||
(24 25 30 29)
|
(24 25 30 29)
|
||||||
(25 68 69 30)
|
(25 68 69 30)
|
||||||
(68 26 31 69)
|
(68 26 31 69)
|
||||||
(5 6 23 22)
|
(5 6 23 22)
|
||||||
(6 10 16 23)
|
(6 10 16 23)
|
||||||
(16 17 24 23)
|
(16 17 24 23)
|
||||||
(18 19 24 17)
|
(18 19 24 17)
|
||||||
(19 20 25 24)
|
(19 20 25 24)
|
||||||
(20 67 68 25)
|
(20 67 68 25)
|
||||||
(67 21 26 68)
|
(67 21 26 68)
|
||||||
(6 7 11 10)
|
(6 7 11 10)
|
||||||
(7 13 12 11)
|
(7 13 12 11)
|
||||||
(7 8 14 13)
|
(7 8 14 13)
|
||||||
(8 65 66 14)
|
(8 65 66 14)
|
||||||
(65 9 15 66)
|
(65 9 15 66)
|
||||||
(0 1 6 5)
|
(0 1 6 5)
|
||||||
(1 2 7 6)
|
(1 2 7 6)
|
||||||
(2 3 8 7)
|
(2 3 8 7)
|
||||||
(3 64 65 8)
|
(3 64 65 8)
|
||||||
(64 4 9 65)
|
(64 4 9 65)
|
||||||
(14 66 67 20)
|
(14 66 67 20)
|
||||||
(66 15 21 67)
|
(66 15 21 67)
|
||||||
|
|
||||||
(33 32 37 38)
|
|
||||||
(34 33 38 39)
|
|
||||||
(35 34 39 40)
|
|
||||||
(70 35 40 71)
|
|
||||||
(36 70 71 41)
|
|
||||||
(38 37 54 55)
|
|
||||||
(42 38 55 48)
|
|
||||||
(39 38 42 43)
|
|
||||||
(45 39 43 44)
|
|
||||||
(40 39 45 46)
|
|
||||||
(71 40 46 72)
|
|
||||||
(41 71 72 47)
|
|
||||||
(49 48 55 56)
|
|
||||||
(51 50 49 56)
|
|
||||||
(52 51 56 57)
|
|
||||||
(73 52 57 74)
|
|
||||||
(53 73 74 58)
|
|
||||||
(55 54 59 60)
|
|
||||||
(56 55 60 61)
|
|
||||||
(57 56 61 62)
|
|
||||||
(74 57 62 75)
|
|
||||||
(58 74 75 63)
|
|
||||||
(72 46 52 73)
|
|
||||||
(47 72 73 53)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
(33 32 37 38)
|
||||||
|
(34 33 38 39)
|
||||||
|
(35 34 39 40)
|
||||||
|
(70 35 40 71)
|
||||||
|
(36 70 71 41)
|
||||||
|
(38 37 54 55)
|
||||||
|
(42 38 55 48)
|
||||||
|
(39 38 42 43)
|
||||||
|
(45 39 43 44)
|
||||||
|
(40 39 45 46)
|
||||||
|
(71 40 46 72)
|
||||||
|
(41 71 72 47)
|
||||||
|
(49 48 55 56)
|
||||||
|
(51 50 49 56)
|
||||||
|
(52 51 56 57)
|
||||||
|
(73 52 57 74)
|
||||||
|
(53 73 74 58)
|
||||||
|
(55 54 59 60)
|
||||||
|
(56 55 60 61)
|
||||||
|
(57 56 61 62)
|
||||||
|
(74 57 62 75)
|
||||||
|
(58 74 75 63)
|
||||||
|
(72 46 52 73)
|
||||||
|
(47 72 73 53)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
mergePatchPairs
|
mergePatchPairs
|
||||||
|
|
|
@ -18,86 +18,85 @@ convertToMeters 0.001;
|
||||||
|
|
||||||
vertices
|
vertices
|
||||||
(
|
(
|
||||||
(0 0 0) //0
|
(0 0 0) //0
|
||||||
(129.289 0 0) //1
|
(129.289 0 0) //1
|
||||||
(270.7106 0 0) //2
|
(270.7106 0 0) //2
|
||||||
(600 0 0) //3
|
(600 0 0) //3
|
||||||
(2500 0 0) //4
|
(2500 0 0) //4
|
||||||
(0 129.289 0) //5
|
(0 129.289 0) //5
|
||||||
(129.289 129.289 0) //6
|
(129.289 129.289 0) //6
|
||||||
(270.7106 129.289 0)//7
|
(270.7106 129.289 0)//7
|
||||||
(600 129.289 0) //8
|
(600 129.289 0) //8
|
||||||
(2500 129.289 0) //9
|
(2500 129.289 0) //9
|
||||||
(164.6447 164.6447 0)//10
|
(164.6447 164.6447 0)//10
|
||||||
(235.3553 164.6447 0)//11
|
(235.3553 164.6447 0)//11
|
||||||
(248.9898 190 0) //12
|
(248.9898 190 0) //12
|
||||||
(299.4987 190 0) //13
|
(299.4987 190 0) //13
|
||||||
(600 190 0) //14
|
(600 190 0) //14
|
||||||
(2500 190 0) //15
|
(2500 190 0) //15
|
||||||
(164.6447 235.355 0) //16
|
(164.6447 235.355 0) //16
|
||||||
(235.3553 235.355 0) //17
|
(235.3553 235.355 0) //17
|
||||||
(248.9898 210 0) //18
|
(248.9898 210 0) //18
|
||||||
(299.4987 210 0) //19
|
(299.4987 210 0) //19
|
||||||
(600 210 0) //20
|
(600 210 0) //20
|
||||||
(2500 210 0) //21
|
(2500 210 0) //21
|
||||||
(0 270.7107 0) //22
|
(0 270.7107 0) //22
|
||||||
(129.289 270.7107 0) //23
|
(129.289 270.7107 0) //23
|
||||||
(270.7106 270.7107 0)//24
|
(270.7106 270.7107 0)//24
|
||||||
(600 270.7107 0) //25
|
(600 270.7107 0) //25
|
||||||
(2500 270.7107 0) //26
|
(2500 270.7107 0) //26
|
||||||
(0 410 0) //27
|
(0 410 0) //27
|
||||||
(129.289 410 0) //28
|
(129.289 410 0) //28
|
||||||
(270.7106 410 0) //29
|
(270.7106 410 0) //29
|
||||||
(600 410 0) //30
|
(600 410 0) //30
|
||||||
(2500 410 0) //31
|
(2500 410 0) //31
|
||||||
|
|
||||||
(0 0 0.05067) //32
|
(0 0 0.05067) //32
|
||||||
(129.289 0 0.05067) //33
|
(129.289 0 0.05067) //33
|
||||||
(270.7106 0 0.05067) //34
|
(270.7106 0 0.05067) //34
|
||||||
(600 0 0.05067) //35
|
(600 0 0.05067) //35
|
||||||
(2500 0 0.05067) //36
|
(2500 0 0.05067) //36
|
||||||
(0 129.289 0.05067) //37
|
(0 129.289 0.05067) //37
|
||||||
(129.289 129.289 0.05067) //38
|
(129.289 129.289 0.05067) //38
|
||||||
(270.7106 129.289 0.05067)//39
|
(270.7106 129.289 0.05067)//39
|
||||||
(600 129.289 0.05067) //40
|
(600 129.289 0.05067) //40
|
||||||
(2500 129.289 0.05067) //41
|
(2500 129.289 0.05067) //41
|
||||||
(164.6447 164.6447 0.05067)//42
|
(164.6447 164.6447 0.05067)//42
|
||||||
(235.3553 164.6447 0.05067)//43
|
(235.3553 164.6447 0.05067)//43
|
||||||
(248.9898 190 0.05067) //44
|
(248.9898 190 0.05067) //44
|
||||||
(299.4987 190 0.05067) //45
|
(299.4987 190 0.05067) //45
|
||||||
(600 190 0.05067) //46
|
(600 190 0.05067) //46
|
||||||
(2500 190 0.05067) //47
|
(2500 190 0.05067) //47
|
||||||
(164.6447 235.355 0.05067) //48
|
(164.6447 235.355 0.05067) //48
|
||||||
(235.3553 235.355 0.05067) //49
|
(235.3553 235.355 0.05067) //49
|
||||||
(248.9898 210 0.05067) //50
|
(248.9898 210 0.05067) //50
|
||||||
(299.4987 210 0.05067) //51
|
(299.4987 210 0.05067) //51
|
||||||
(600 210 0.05067) //52
|
(600 210 0.05067) //52
|
||||||
(2500 210 0.05067) //53
|
(2500 210 0.05067) //53
|
||||||
(0 270.7107 0.05067) //54
|
(0 270.7107 0.05067) //54
|
||||||
(129.289 270.7107 0.05067) //55
|
(129.289 270.7107 0.05067) //55
|
||||||
(270.7106 270.7107 0.05067)//56
|
(270.7106 270.7107 0.05067)//56
|
||||||
(600 270.7107 0.05067) //57
|
(600 270.7107 0.05067) //57
|
||||||
(2500 270.7107 0.05067) //58
|
(2500 270.7107 0.05067) //58
|
||||||
(0 410 0.05067) //59
|
(0 410 0.05067) //59
|
||||||
(129.289 410 0.05067) //60
|
(129.289 410 0.05067) //60
|
||||||
(270.7106 410 0.05067) //61
|
(270.7106 410 0.05067) //61
|
||||||
(600 410 0.05067) //62
|
(600 410 0.05067) //62
|
||||||
(2500 410 0.05067) //63
|
(2500 410 0.05067) //63
|
||||||
|
|
||||||
(1000 0 0) //64
|
(1000 0 0) //64
|
||||||
(1000 129.289 0) //65
|
(1000 129.289 0) //65
|
||||||
(1000 190 0) //66
|
(1000 190 0) //66
|
||||||
(1000 210 0) //67
|
(1000 210 0) //67
|
||||||
(1000 270.7107 0) //68
|
(1000 270.7107 0) //68
|
||||||
(1000 410 0) //69
|
(1000 410 0) //69
|
||||||
|
|
||||||
(1000 0 0.05067) //70
|
|
||||||
(1000 129.289 0.05067) //71
|
|
||||||
(1000 190 0.05067) //72
|
|
||||||
(1000 210 0.05067) //73
|
|
||||||
(1000 270.7107 0.05067) //74
|
|
||||||
(1000 410 0.05067) //75
|
|
||||||
|
|
||||||
|
(1000 0 0.05067) //70
|
||||||
|
(1000 129.289 0.05067) //71
|
||||||
|
(1000 190 0.05067) //72
|
||||||
|
(1000 210 0.05067) //73
|
||||||
|
(1000 270.7107 0.05067) //74
|
||||||
|
(1000 410 0.05067) //75
|
||||||
);
|
);
|
||||||
|
|
||||||
blocks
|
blocks
|
||||||
|
@ -159,116 +158,114 @@ edges
|
||||||
|
|
||||||
arc 13 7 (286.6025 150 0)
|
arc 13 7 (286.6025 150 0)
|
||||||
arc 45 39 (286.6025 150 0.05067)
|
arc 45 39 (286.6025 150 0.05067)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
patches
|
patches
|
||||||
(
|
(
|
||||||
patch plate
|
patch plate
|
||||||
(
|
(
|
||||||
(19 18 50 51)
|
(19 18 50 51)
|
||||||
(12 13 45 44)
|
(12 13 45 44)
|
||||||
(20 19 51 52)
|
(20 19 51 52)
|
||||||
(13 14 46 45)
|
(13 14 46 45)
|
||||||
(20 52 46 14)
|
(20 52 46 14)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch outlet
|
patch outlet
|
||||||
(
|
(
|
||||||
(63 31 26 58)
|
(63 31 26 58)
|
||||||
(58 26 21 53)
|
(58 26 21 53)
|
||||||
(53 21 15 47)
|
(53 21 15 47)
|
||||||
(47 15 9 41)
|
(47 15 9 41)
|
||||||
(41 9 4 36)
|
(41 9 4 36)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch inlet
|
patch inlet
|
||||||
(
|
(
|
||||||
(27 59 54 22)
|
(27 59 54 22)
|
||||||
(22 54 37 5)
|
(22 54 37 5)
|
||||||
(5 37 32 0)
|
(5 37 32 0)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch cylinder
|
patch cylinder
|
||||||
(
|
(
|
||||||
(16 48 49 17)
|
(16 48 49 17)
|
||||||
(17 49 50 18)
|
(17 49 50 18)
|
||||||
(10 42 48 16)
|
(10 42 48 16)
|
||||||
(11 43 42 10)
|
(11 43 42 10)
|
||||||
(12 44 43 11)
|
(12 44 43 11)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch bottom
|
patch bottom
|
||||||
(
|
(
|
||||||
(1 0 32 33)
|
(1 0 32 33)
|
||||||
(2 1 33 34)
|
(2 1 33 34)
|
||||||
(3 2 34 35)
|
(3 2 34 35)
|
||||||
(64 3 35 70)
|
(64 3 35 70)
|
||||||
(4 64 70 36)
|
(4 64 70 36)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch top
|
patch top
|
||||||
(
|
(
|
||||||
(27 28 60 59)
|
(27 28 60 59)
|
||||||
(28 29 61 60)
|
(28 29 61 60)
|
||||||
(29 30 62 61)
|
(29 30 62 61)
|
||||||
(30 69 75 62)
|
(30 69 75 62)
|
||||||
(69 31 63 75)
|
(69 31 63 75)
|
||||||
)
|
)
|
||||||
|
|
||||||
empty frontAndBackPlanes
|
empty frontAndBackPlanes
|
||||||
(
|
(
|
||||||
(22 23 28 27)
|
(22 23 28 27)
|
||||||
(23 24 29 28)
|
(23 24 29 28)
|
||||||
(24 25 30 29)
|
(24 25 30 29)
|
||||||
(25 68 69 30)
|
(25 68 69 30)
|
||||||
(68 26 31 69)
|
(68 26 31 69)
|
||||||
(5 6 23 22)
|
(5 6 23 22)
|
||||||
(6 10 16 23)
|
(6 10 16 23)
|
||||||
(16 17 24 23)
|
(16 17 24 23)
|
||||||
(18 19 24 17)
|
(18 19 24 17)
|
||||||
(19 20 25 24)
|
(19 20 25 24)
|
||||||
(20 67 68 25)
|
(20 67 68 25)
|
||||||
(67 21 26 68)
|
(67 21 26 68)
|
||||||
(6 7 11 10)
|
(6 7 11 10)
|
||||||
(7 13 12 11)
|
(7 13 12 11)
|
||||||
(7 8 14 13)
|
(7 8 14 13)
|
||||||
(8 65 66 14)
|
(8 65 66 14)
|
||||||
(65 9 15 66)
|
(65 9 15 66)
|
||||||
(0 1 6 5)
|
(0 1 6 5)
|
||||||
(1 2 7 6)
|
(1 2 7 6)
|
||||||
(2 3 8 7)
|
(2 3 8 7)
|
||||||
(3 64 65 8)
|
(3 64 65 8)
|
||||||
(64 4 9 65)
|
(64 4 9 65)
|
||||||
(14 66 67 20)
|
(14 66 67 20)
|
||||||
(66 15 21 67)
|
(66 15 21 67)
|
||||||
|
|
||||||
(33 32 37 38)
|
|
||||||
(34 33 38 39)
|
|
||||||
(35 34 39 40)
|
|
||||||
(70 35 40 71)
|
|
||||||
(36 70 71 41)
|
|
||||||
(38 37 54 55)
|
|
||||||
(42 38 55 48)
|
|
||||||
(39 38 42 43)
|
|
||||||
(45 39 43 44)
|
|
||||||
(40 39 45 46)
|
|
||||||
(71 40 46 72)
|
|
||||||
(41 71 72 47)
|
|
||||||
(49 48 55 56)
|
|
||||||
(51 50 49 56)
|
|
||||||
(52 51 56 57)
|
|
||||||
(73 52 57 74)
|
|
||||||
(53 73 74 58)
|
|
||||||
(55 54 59 60)
|
|
||||||
(56 55 60 61)
|
|
||||||
(57 56 61 62)
|
|
||||||
(74 57 62 75)
|
|
||||||
(58 74 75 63)
|
|
||||||
(72 46 52 73)
|
|
||||||
(47 72 73 53)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
(33 32 37 38)
|
||||||
|
(34 33 38 39)
|
||||||
|
(35 34 39 40)
|
||||||
|
(70 35 40 71)
|
||||||
|
(36 70 71 41)
|
||||||
|
(38 37 54 55)
|
||||||
|
(42 38 55 48)
|
||||||
|
(39 38 42 43)
|
||||||
|
(45 39 43 44)
|
||||||
|
(40 39 45 46)
|
||||||
|
(71 40 46 72)
|
||||||
|
(41 71 72 47)
|
||||||
|
(49 48 55 56)
|
||||||
|
(51 50 49 56)
|
||||||
|
(52 51 56 57)
|
||||||
|
(73 52 57 74)
|
||||||
|
(53 73 74 58)
|
||||||
|
(55 54 59 60)
|
||||||
|
(56 55 60 61)
|
||||||
|
(57 56 61 62)
|
||||||
|
(74 57 62 75)
|
||||||
|
(58 74 75 63)
|
||||||
|
(72 46 52 73)
|
||||||
|
(47 72 73 53)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
mergePatchPairs
|
mergePatchPairs
|
||||||
|
|
|
@ -18,15 +18,15 @@ convertToMeters 0.001;
|
||||||
|
|
||||||
vertices
|
vertices
|
||||||
(
|
(
|
||||||
(248.9898 190 0) //0=12
|
(248.9898 190 0) //0=12
|
||||||
(600 190 0) //1=14
|
(600 190 0) //1=14
|
||||||
(600 210 0) //2=20
|
(600 210 0) //2=20
|
||||||
(248.9898 210 0) //3=18
|
(248.9898 210 0) //3=18
|
||||||
|
|
||||||
(248.9898 190 15) //4=44
|
(248.9898 190 15) //4=44
|
||||||
(600 190 15) //5=46
|
(600 190 15) //5=46
|
||||||
(600 210 15) //6=52
|
(600 210 15) //6=52
|
||||||
(248.9898 210 15) //7=50
|
(248.9898 210 15) //7=50
|
||||||
);
|
);
|
||||||
|
|
||||||
blocks
|
blocks
|
||||||
|
@ -40,24 +40,23 @@ edges
|
||||||
|
|
||||||
patches
|
patches
|
||||||
(
|
(
|
||||||
patch plateFix
|
patch plateFix
|
||||||
(
|
(
|
||||||
(3 7 4 0)
|
(3 7 4 0)
|
||||||
)
|
)
|
||||||
|
|
||||||
patch plate
|
patch plate
|
||||||
(
|
(
|
||||||
(3 2 6 7)
|
(3 2 6 7)
|
||||||
(6 2 1 5)
|
(6 2 1 5)
|
||||||
(1 0 4 5)
|
(1 0 4 5)
|
||||||
)
|
)
|
||||||
|
|
||||||
empty frontAndBackPlanes
|
|
||||||
(
|
|
||||||
(0 1 2 3)
|
|
||||||
(7 6 5 4)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
empty frontAndBackPlanes
|
||||||
|
(
|
||||||
|
(0 1 2 3)
|
||||||
|
(7 6 5 4)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
mergePatchPairs
|
mergePatchPairs
|
||||||
|
|
|
@ -54,15 +54,15 @@ mixture CO2 1 44.01 73.773e5 304.13 49436.5054 -626.411601 5.30172524 0.
|
||||||
//CL: description of coefficients
|
//CL: description of coefficients
|
||||||
// *********************************************************************************************************************** //
|
// *********************************************************************************************************************** //
|
||||||
// Coefficient:
|
// Coefficient:
|
||||||
// CO2 --> Name
|
// CO2 --> Name
|
||||||
// 1
|
// 1
|
||||||
// 44.01 --> Molar Volume
|
// 44.01 --> Molar Volume
|
||||||
// 77.773e5 --> critical pressure
|
// 77.773e5 --> critical pressure
|
||||||
// 304.13 --> critical temperatur
|
// 304.13 --> critical temperatur
|
||||||
// 0.22394 --> acentric factor (not needed for redlich kwong)
|
// 0.22394 --> acentric factor (not needed for redlich kwong)
|
||||||
// 467.6 --> critical density (only for aungier redlich kwong)
|
// 467.6 --> critical density (only for aungier redlich kwong)
|
||||||
// 49436.5054 --> 2.849677801e-13 --> 7 heat capacity polynomial coefficent's
|
// 49436.5054 --> 2.849677801e-13 --> 7 heat capacity polynomial coefficent's
|
||||||
// .... --> two coefficent's for sutherlandTransport or for the constRealGasTransport model
|
// .... --> two coefficent's for sutherlandTransport or for the constRealGasTransport model
|
||||||
// 839 --> perfect gas heat capacity Cp0 (J/kgK), needed for constantHeatCapacity
|
// 839 --> perfect gas heat capacity Cp0 (J/kgK), needed for constantHeatCapacity
|
||||||
// *********************************************************************************************************************** //
|
// *********************************************************************************************************************** //
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,12 @@ solvers
|
||||||
tolerance 1e-14;
|
tolerance 1e-14;
|
||||||
relTol 0.001;
|
relTol 0.001;
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
minIter 4;
|
minIter 4;
|
||||||
//maxIter 100;
|
//maxIter 100;
|
||||||
cacheAgglomeration true;
|
cacheAgglomeration true;
|
||||||
nPreSweeps 1;
|
nPreSweeps 1;
|
||||||
nPostSweeps 3;
|
nPostSweeps 3;
|
||||||
nFinestSweeps 3;
|
nFinestSweeps 3;
|
||||||
nCellsInCoarsestLevel 20;
|
nCellsInCoarsestLevel 20;
|
||||||
agglomerator faceAreaPair;
|
agglomerator faceAreaPair;
|
||||||
mergeLevels 1;
|
mergeLevels 1;
|
||||||
|
|
|
@ -23,12 +23,12 @@ solvers
|
||||||
tolerance 1e-14;
|
tolerance 1e-14;
|
||||||
relTol 0.001;
|
relTol 0.001;
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
minIter 4;
|
minIter 4;
|
||||||
//maxIter 100;
|
//maxIter 100;
|
||||||
cacheAgglomeration true;
|
cacheAgglomeration true;
|
||||||
nPreSweeps 1;
|
nPreSweeps 1;
|
||||||
nPostSweeps 3;
|
nPostSweeps 3;
|
||||||
nFinestSweeps 3;
|
nFinestSweeps 3;
|
||||||
nCellsInCoarsestLevel 20;
|
nCellsInCoarsestLevel 20;
|
||||||
agglomerator faceAreaPair;
|
agglomerator faceAreaPair;
|
||||||
mergeLevels 1;
|
mergeLevels 1;
|
||||||
|
|
|
@ -23,8 +23,8 @@ solvers
|
||||||
tolerance 1e-14;
|
tolerance 1e-14;
|
||||||
relTol 0.001;
|
relTol 0.001;
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
minIter 4;
|
minIter 4;
|
||||||
//maxIter 100;
|
//maxIter 100;
|
||||||
cacheAgglomeration true;
|
cacheAgglomeration true;
|
||||||
nPreSweeps 1;
|
nPreSweeps 1;
|
||||||
nPostSweeps 3;
|
nPostSweeps 3;
|
||||||
|
|
|
@ -54,15 +54,15 @@ mixture CO2 1 44.01 73.773e5 304.13 49436.5054 -626.411601 5.30172524 0.
|
||||||
//CL: description of coefficients
|
//CL: description of coefficients
|
||||||
// *********************************************************************************************************************** //
|
// *********************************************************************************************************************** //
|
||||||
// Coefficient:
|
// Coefficient:
|
||||||
// CO2 --> Name
|
// CO2 --> Name
|
||||||
// 1
|
// 1
|
||||||
// 44.01 --> Molar Volume
|
// 44.01 --> Molar Volume
|
||||||
// 77.773e5 --> critical pressure
|
// 77.773e5 --> critical pressure
|
||||||
// 304.13 --> critical temperatur
|
// 304.13 --> critical temperatur
|
||||||
// 0.22394 --> acentric factor (not needed for redlich kwong)
|
// 0.22394 --> acentric factor (not needed for redlich kwong)
|
||||||
// 467.6 --> critical density (only for aungier redlich kwong)
|
// 467.6 --> critical density (only for aungier redlich kwong)
|
||||||
// 49436.5054 --> 2.849677801e-13 --> 7 heat capacity polynomial coefficent's
|
// 49436.5054 --> 2.849677801e-13 --> 7 heat capacity polynomial coefficent's
|
||||||
// .... --> two coefficent's for sutherlandRealGasTransport or for the constRealGasTransport model
|
// .... --> two coefficent's for sutherlandRealGasTransport or for the constRealGasTransport model
|
||||||
// 839 --> perfect gas heat capacity Cp0 (J/kgK), needed for constantHeatCapacity
|
// 839 --> perfect gas heat capacity Cp0 (J/kgK), needed for constantHeatCapacity
|
||||||
// *********************************************************************************************************************** //
|
// *********************************************************************************************************************** //
|
||||||
|
|
||||||
|
|
|
@ -24,12 +24,12 @@ p
|
||||||
tolerance 1e-14;
|
tolerance 1e-14;
|
||||||
relTol 0.001;
|
relTol 0.001;
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
minIter 4;
|
minIter 4;
|
||||||
//maxIter 100;
|
//maxIter 100;
|
||||||
cacheAgglomeration true;
|
cacheAgglomeration true;
|
||||||
nPreSweeps 1;
|
nPreSweeps 1;
|
||||||
nPostSweeps 3;
|
nPostSweeps 3;
|
||||||
nFinestSweeps 3;
|
nFinestSweeps 3;
|
||||||
nCellsInCoarsestLevel 20;
|
nCellsInCoarsestLevel 20;
|
||||||
agglomerator faceAreaPair;
|
agglomerator faceAreaPair;
|
||||||
mergeLevels 1;
|
mergeLevels 1;
|
||||||
|
|
|
@ -24,14 +24,14 @@ boundaryField
|
||||||
GVINLET
|
GVINLET
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
GVOUTLET
|
GVOUTLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating false;
|
rotating false;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
GVCYCLIC
|
GVCYCLIC
|
||||||
{
|
{
|
||||||
|
@ -52,16 +52,16 @@ boundaryField
|
||||||
RUINLET
|
RUINLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating true;
|
rotating true;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
RUOUTLET
|
RUOUTLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating true;
|
rotating true;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
RUCYCLIC1
|
RUCYCLIC1
|
||||||
{
|
{
|
||||||
|
@ -86,9 +86,9 @@ boundaryField
|
||||||
DTINLET
|
DTINLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating false;
|
rotating false;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
DTOUTLET
|
DTOUTLET
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,7 @@ boundaryField
|
||||||
GVOUTLET
|
GVOUTLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
GVCYCLIC
|
GVCYCLIC
|
||||||
{
|
{
|
||||||
|
@ -52,12 +52,12 @@ boundaryField
|
||||||
RUINLET
|
RUINLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUOUTLET
|
RUOUTLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUCYCLIC1
|
RUCYCLIC1
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ boundaryField
|
||||||
DTINLET
|
DTINLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
DTOUTLET
|
DTOUTLET
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,14 +24,14 @@ boundaryField
|
||||||
GVINLET
|
GVINLET
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
GVOUTLET
|
GVOUTLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating false;
|
rotating false;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
GVCYCLIC
|
GVCYCLIC
|
||||||
{
|
{
|
||||||
|
@ -52,16 +52,16 @@ boundaryField
|
||||||
RUINLET
|
RUINLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating true;
|
rotating true;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
RUOUTLET
|
RUOUTLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating true;
|
rotating true;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
RUCYCLIC1
|
RUCYCLIC1
|
||||||
{
|
{
|
||||||
|
@ -86,9 +86,9 @@ boundaryField
|
||||||
DTINLET
|
DTINLET
|
||||||
{
|
{
|
||||||
type ggiEnthalpyJump;
|
type ggiEnthalpyJump;
|
||||||
patchType ggi;
|
patchType ggi;
|
||||||
rotating false;
|
rotating false;
|
||||||
value uniform 305.66;
|
value uniform 305.66;
|
||||||
}
|
}
|
||||||
DTOUTLET
|
DTOUTLET
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,7 @@ boundaryField
|
||||||
GVOUTLET
|
GVOUTLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
GVCYCLIC
|
GVCYCLIC
|
||||||
{
|
{
|
||||||
|
@ -52,12 +52,12 @@ boundaryField
|
||||||
RUINLET
|
RUINLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUOUTLET
|
RUOUTLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUCYCLIC1
|
RUCYCLIC1
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ boundaryField
|
||||||
DTINLET
|
DTINLET
|
||||||
{
|
{
|
||||||
type ggi;
|
type ggi;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
DTOUTLET
|
DTOUTLET
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@ ddtSchemes
|
||||||
|
|
||||||
// ddt(rho,U) steadyInertial phi rho 0.25;
|
// ddt(rho,U) steadyInertial phi rho 0.25;
|
||||||
ddt(rho,h) steadyState;
|
ddt(rho,h) steadyState;
|
||||||
ddt(rho,i) steadyState;
|
ddt(rho,i) steadyState;
|
||||||
// ddt(rho,h) steadyInertial phi rho 0.25;
|
// ddt(rho,h) steadyInertial phi rho 0.25;
|
||||||
ddt(psi,p) steadyInertial phi rho 1;
|
ddt(psi,p) steadyInertial phi rho 1;
|
||||||
// ddt(psi,p) steadyState;
|
// ddt(psi,p) steadyState;
|
||||||
|
@ -44,7 +44,7 @@ divSchemes
|
||||||
default none;
|
default none;
|
||||||
div(phi,U) Gauss upwind;
|
div(phi,U) Gauss upwind;
|
||||||
div(phi,h) Gauss upwind;
|
div(phi,h) Gauss upwind;
|
||||||
div(phi,i) Gauss upwind;
|
div(phi,i) Gauss upwind;
|
||||||
div(phid,p) Gauss upwind;
|
div(phid,p) Gauss upwind;
|
||||||
|
|
||||||
div(phi,k) Gauss upwind;
|
div(phi,k) Gauss upwind;
|
||||||
|
@ -74,10 +74,10 @@ snGradSchemes
|
||||||
|
|
||||||
mixingPlane
|
mixingPlane
|
||||||
{
|
{
|
||||||
default areaAveraging;
|
default areaAveraging;
|
||||||
U areaAveraging;
|
U areaAveraging;
|
||||||
k fluxAveraging;
|
k fluxAveraging;
|
||||||
omega areaAveraging;
|
omega areaAveraging;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
|
@ -57,7 +57,8 @@ solvers
|
||||||
tolerance 1e-7;
|
tolerance 1e-7;
|
||||||
relTol 0.1;
|
relTol 0.1;
|
||||||
}
|
}
|
||||||
T
|
|
||||||
|
T
|
||||||
{
|
{
|
||||||
solver smoothSolver;
|
solver smoothSolver;
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
|
@ -65,6 +66,7 @@ solvers
|
||||||
tolerance 1e-7;
|
tolerance 1e-7;
|
||||||
relTol 0.1;
|
relTol 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
i
|
i
|
||||||
{
|
{
|
||||||
solver smoothSolver;
|
solver smoothSolver;
|
||||||
|
@ -97,9 +99,9 @@ relaxationFactors
|
||||||
U 0.1;
|
U 0.1;
|
||||||
p 0.1;
|
p 0.1;
|
||||||
h 0.1;
|
h 0.1;
|
||||||
i 0.1;
|
i 0.1;
|
||||||
rho 0.1;
|
rho 0.1;
|
||||||
T 0.1;
|
T 0.1;
|
||||||
|
|
||||||
k 0.1;
|
k 0.1;
|
||||||
epsilon 0.1;
|
epsilon 0.1;
|
||||||
|
@ -107,10 +109,10 @@ relaxationFactors
|
||||||
|
|
||||||
fieldBounds
|
fieldBounds
|
||||||
{
|
{
|
||||||
p 50 1e8;
|
p 50 1e8;
|
||||||
T 100 1000;
|
T 100 1000;
|
||||||
U 1000;
|
U 1000;
|
||||||
epsilon 0 1e6;
|
epsilon 0 1e6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ boundaryField
|
||||||
GVOUTLET
|
GVOUTLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
GVCYCLIC
|
GVCYCLIC
|
||||||
{
|
{
|
||||||
|
@ -52,12 +52,12 @@ boundaryField
|
||||||
RUINLET
|
RUINLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUOUTLET
|
RUOUTLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUCYCLIC1
|
RUCYCLIC1
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ boundaryField
|
||||||
DTINLET
|
DTINLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
DTOUTLET
|
DTOUTLET
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,7 @@ boundaryField
|
||||||
GVOUTLET
|
GVOUTLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
GVCYCLIC
|
GVCYCLIC
|
||||||
{
|
{
|
||||||
|
@ -52,12 +52,12 @@ boundaryField
|
||||||
RUINLET
|
RUINLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUOUTLET
|
RUOUTLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
RUCYCLIC1
|
RUCYCLIC1
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ boundaryField
|
||||||
DTINLET
|
DTINLET
|
||||||
{
|
{
|
||||||
type mixingPlane;
|
type mixingPlane;
|
||||||
value uniform (0 0 -1);
|
value uniform (0 0 -1);
|
||||||
}
|
}
|
||||||
DTOUTLET
|
DTOUTLET
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@ ddtSchemes
|
||||||
|
|
||||||
// ddt(rho,U) steadyInertial phi rho 0.25;
|
// ddt(rho,U) steadyInertial phi rho 0.25;
|
||||||
ddt(rho,h) steadyState;
|
ddt(rho,h) steadyState;
|
||||||
ddt(rho,i) steadyState;
|
ddt(rho,i) steadyState;
|
||||||
// ddt(rho,h) steadyInertial phi rho 0.25;
|
// ddt(rho,h) steadyInertial phi rho 0.25;
|
||||||
ddt(psi,p) steadyInertial phi rho 1;
|
ddt(psi,p) steadyInertial phi rho 1;
|
||||||
// ddt(psi,p) steadyState;
|
// ddt(psi,p) steadyState;
|
||||||
|
@ -44,7 +44,7 @@ divSchemes
|
||||||
default none;
|
default none;
|
||||||
div(phi,U) Gauss upwind;
|
div(phi,U) Gauss upwind;
|
||||||
div(phi,h) Gauss upwind;
|
div(phi,h) Gauss upwind;
|
||||||
div(phi,i) Gauss upwind;
|
div(phi,i) Gauss upwind;
|
||||||
div(phid,p) Gauss upwind;
|
div(phid,p) Gauss upwind;
|
||||||
|
|
||||||
div(phi,k) Gauss upwind;
|
div(phi,k) Gauss upwind;
|
||||||
|
@ -74,10 +74,10 @@ snGradSchemes
|
||||||
|
|
||||||
mixingPlane
|
mixingPlane
|
||||||
{
|
{
|
||||||
default areaAveraging;
|
default areaAveraging;
|
||||||
U areaAveraging;
|
U areaAveraging;
|
||||||
k fluxAveraging;
|
k fluxAveraging;
|
||||||
omega areaAveraging;
|
omega areaAveraging;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,76 +0,0 @@
|
||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
|
||||||
| ========= | |
|
|
||||||
| \\ / F ield | foam-extend: Open Source CFD |
|
|
||||||
| \\ / O peration | Version: 3.2 |
|
|
||||||
| \\ / A nd | Web: http://www.foam-extend.org |
|
|
||||||
| \\/ M anipulation | |
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
FoamFile
|
|
||||||
{
|
|
||||||
version 2.0;
|
|
||||||
format ascii;
|
|
||||||
class dictionary;
|
|
||||||
object fvSchemes;
|
|
||||||
}
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
ddtSchemes
|
|
||||||
{
|
|
||||||
default steadyState;
|
|
||||||
}
|
|
||||||
|
|
||||||
gradSchemes
|
|
||||||
{
|
|
||||||
default Gauss linear;
|
|
||||||
grad(p) Gauss linear;
|
|
||||||
grad(U) Gauss linear;
|
|
||||||
}
|
|
||||||
|
|
||||||
divSchemes
|
|
||||||
{
|
|
||||||
default none;
|
|
||||||
div(phi,U) Gauss limitedLinearV 1;
|
|
||||||
div(phi,k) Gauss limitedLinear 1;
|
|
||||||
div(phi,i) Gauss limitedLinear 1;
|
|
||||||
div(phid,p) Gauss limitedLinear 1;
|
|
||||||
div(phi,epsilon) Gauss limitedLinear 1;
|
|
||||||
div((nuEff*dev(grad(U).T()))) Gauss linear;
|
|
||||||
div((muEff*dev2(grad(U).T()))) Gauss linear;
|
|
||||||
}
|
|
||||||
|
|
||||||
laplacianSchemes
|
|
||||||
{
|
|
||||||
default none;
|
|
||||||
laplacian(nuEff,U) Gauss linear corrected;
|
|
||||||
laplacian((rho*(1|A(U))),p) Gauss linear corrected;
|
|
||||||
laplacian(DkEff,k) Gauss linear corrected;
|
|
||||||
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
|
|
||||||
laplacian(muEff,U) Gauss linear corrected;
|
|
||||||
laplacian(alphaEff,i) Gauss linear corrected;
|
|
||||||
}
|
|
||||||
|
|
||||||
interpolationSchemes
|
|
||||||
{
|
|
||||||
default linear;
|
|
||||||
interpolate(U) linear;
|
|
||||||
}
|
|
||||||
|
|
||||||
snGradSchemes
|
|
||||||
{
|
|
||||||
default corrected;
|
|
||||||
}
|
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
}
|
|
||||||
|
|
||||||
mixingPlane
|
|
||||||
{
|
|
||||||
default areaAveraging;
|
|
||||||
//U fluxAveragingAdjustMassFlow;
|
|
||||||
//p zeroGradientAreaAveragingMix;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
|
@ -47,7 +47,8 @@ solvers
|
||||||
tolerance 1e-7;
|
tolerance 1e-7;
|
||||||
relTol 0.1;
|
relTol 0.1;
|
||||||
}
|
}
|
||||||
T
|
|
||||||
|
T
|
||||||
{
|
{
|
||||||
solver smoothSolver;
|
solver smoothSolver;
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
|
@ -55,6 +56,7 @@ solvers
|
||||||
tolerance 1e-7;
|
tolerance 1e-7;
|
||||||
relTol 0.1;
|
relTol 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
i
|
i
|
||||||
{
|
{
|
||||||
solver smoothSolver;
|
solver smoothSolver;
|
||||||
|
@ -87,9 +89,9 @@ relaxationFactors
|
||||||
U 0.1;
|
U 0.1;
|
||||||
p 0.1;
|
p 0.1;
|
||||||
h 0.1;
|
h 0.1;
|
||||||
i 0.1;
|
i 0.1;
|
||||||
rho 0.1;
|
rho 0.1;
|
||||||
T 0.1;
|
T 0.1;
|
||||||
|
|
||||||
k 0.1;
|
k 0.1;
|
||||||
epsilon 0.1;
|
epsilon 0.1;
|
||||||
|
@ -97,10 +99,10 @@ relaxationFactors
|
||||||
|
|
||||||
fieldBounds
|
fieldBounds
|
||||||
{
|
{
|
||||||
p 50 1e8;
|
p 50 1e8;
|
||||||
T 100 1000;
|
T 100 1000;
|
||||||
U 1000;
|
U 1000;
|
||||||
epsilon 0 1e6;
|
epsilon 0 1e6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ boundaryField
|
||||||
deadCellValue 0;
|
deadCellValue 0;
|
||||||
|
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input
|
input
|
||||||
|
|
|
@ -23,13 +23,12 @@ immersedBoundarySolidBodyMotionFvMeshCoeffs
|
||||||
(
|
(
|
||||||
ibCylinder
|
ibCylinder
|
||||||
{
|
{
|
||||||
|
|
||||||
solidBodyMotionFunction rotatingOscillation;
|
solidBodyMotionFunction rotatingOscillation;
|
||||||
rotatingOscillationCoeffs
|
rotatingOscillationCoeffs
|
||||||
{
|
{
|
||||||
origin (0 0 0);
|
origin (0 0 0);
|
||||||
amplitude (0 0 14);
|
amplitude (0 0 14);
|
||||||
period 0.5;
|
period 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -19,39 +19,39 @@ convertToMeters 1;
|
||||||
vertices
|
vertices
|
||||||
(
|
(
|
||||||
|
|
||||||
( -0.1 -0.2 0 )
|
( -0.1 -0.2 0 )
|
||||||
( -0.015 -0.2 0 )
|
( -0.015 -0.2 0 )
|
||||||
( 0.4 -0.2 0 )
|
( 0.4 -0.2 0 )
|
||||||
( 0.5 -0.2 0 )
|
( 0.5 -0.2 0 )
|
||||||
( -0.1 -0.05 0 )
|
( -0.1 -0.05 0 )
|
||||||
( -0.015 -0.05 0 )
|
( -0.015 -0.05 0 )
|
||||||
( 0.4 -0.05 0 )
|
( 0.4 -0.05 0 )
|
||||||
( 0.5 -0.05 0 )
|
( 0.5 -0.05 0 )
|
||||||
( -0.1 0.05 0 )
|
( -0.1 0.05 0 )
|
||||||
( -0.015 0.05 0 )
|
( -0.015 0.05 0 )
|
||||||
( 0.4 0.05 0 )
|
( 0.4 0.05 0 )
|
||||||
( 0.5 0.05 0 )
|
( 0.5 0.05 0 )
|
||||||
( -0.1 0.2 0 )
|
( -0.1 0.2 0 )
|
||||||
( -0.015 0.2 0 )
|
( -0.015 0.2 0 )
|
||||||
( 0.4 0.2 0 )
|
( 0.4 0.2 0 )
|
||||||
( 0.5 0.2 0 )
|
( 0.5 0.2 0 )
|
||||||
|
|
||||||
( -0.1 -0.2 0.001 )
|
( -0.1 -0.2 0.001 )
|
||||||
( -0.015 -0.2 0.001 )
|
( -0.015 -0.2 0.001 )
|
||||||
( 0.4 -0.2 0.001 )
|
( 0.4 -0.2 0.001 )
|
||||||
( 0.5 -0.2 0.001 )
|
( 0.5 -0.2 0.001 )
|
||||||
( -0.1 -0.05 0.001 )
|
( -0.1 -0.05 0.001 )
|
||||||
( -0.015 -0.05 0.001 )
|
( -0.015 -0.05 0.001 )
|
||||||
( 0.4 -0.05 0.001 )
|
( 0.4 -0.05 0.001 )
|
||||||
( 0.5 -0.05 0.001 )
|
( 0.5 -0.05 0.001 )
|
||||||
( -0.1 0.05 0.001 )
|
( -0.1 0.05 0.001 )
|
||||||
( -0.015 0.05 0.001 )
|
( -0.015 0.05 0.001 )
|
||||||
( 0.4 0.05 0.001 )
|
( 0.4 0.05 0.001 )
|
||||||
( 0.5 0.05 0.001 )
|
( 0.5 0.05 0.001 )
|
||||||
( -0.1 0.2 0.001 )
|
( -0.1 0.2 0.001 )
|
||||||
( -0.015 0.2 0.001 )
|
( -0.015 0.2 0.001 )
|
||||||
( 0.4 0.2 0.001 )
|
( 0.4 0.2 0.001 )
|
||||||
( 0.5 0.2 0.001 )
|
( 0.5 0.2 0.001 )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,15 +61,15 @@ vertices
|
||||||
blocks
|
blocks
|
||||||
(
|
(
|
||||||
|
|
||||||
hex ( 8 9 13 12 24 25 29 28 ) ( 44 54 1 ) simpleGrading ( 0.1111111111 14 1 )
|
hex ( 8 9 13 12 24 25 29 28 ) ( 44 54 1 ) simpleGrading ( 0.1111111111 14 1 )
|
||||||
hex ( 9 10 14 13 25 26 30 29 ) ( 830 54 1 ) simpleGrading ( 1 14 1 )
|
hex ( 9 10 14 13 25 26 30 29 ) ( 830 54 1 ) simpleGrading ( 1 14 1 )
|
||||||
hex ( 10 11 15 14 26 27 31 30 ) ( 47 54 1 ) simpleGrading ( 10 14 1 )
|
hex ( 10 11 15 14 26 27 31 30 ) ( 47 54 1 ) simpleGrading ( 10 14 1 )
|
||||||
hex ( 4 5 9 8 20 21 25 24 ) ( 44 200 1 ) simpleGrading ( 0.1111111111 1 1 )
|
hex ( 4 5 9 8 20 21 25 24 ) ( 44 200 1 ) simpleGrading ( 0.1111111111 1 1 )
|
||||||
hex ( 5 6 10 9 21 22 26 25 ) ( 830 200 1 ) simpleGrading ( 1 1 1 )
|
hex ( 5 6 10 9 21 22 26 25 ) ( 830 200 1 ) simpleGrading ( 1 1 1 )
|
||||||
hex ( 6 7 11 10 22 23 27 26 ) ( 47 200 1 ) simpleGrading ( 10 1 1 )
|
hex ( 6 7 11 10 22 23 27 26 ) ( 47 200 1 ) simpleGrading ( 10 1 1 )
|
||||||
hex ( 0 1 5 4 16 17 21 20 ) ( 44 76 1 ) simpleGrading ( 0.1111111111 0.1111111111 1 )
|
hex ( 0 1 5 4 16 17 21 20 ) ( 44 76 1 ) simpleGrading ( 0.1111111111 0.1111111111 1 )
|
||||||
hex ( 1 2 6 5 17 18 22 21 ) ( 830 76 1 ) simpleGrading ( 1 0.1111111111 1 )
|
hex ( 1 2 6 5 17 18 22 21 ) ( 830 76 1 ) simpleGrading ( 1 0.1111111111 1 )
|
||||||
hex ( 2 3 7 6 18 19 23 22 ) ( 47 76 1 ) simpleGrading ( 10 0.1111111111 1 )
|
hex ( 2 3 7 6 18 19 23 22 ) ( 47 76 1 ) simpleGrading ( 10 0.1111111111 1 )
|
||||||
|
|
||||||
|
|
||||||
);
|
);
|
||||||
|
@ -83,55 +83,55 @@ patches
|
||||||
patch input
|
patch input
|
||||||
(
|
(
|
||||||
|
|
||||||
( 0 16 20 4 )
|
( 0 16 20 4 )
|
||||||
( 4 20 24 8 )
|
( 4 20 24 8 )
|
||||||
( 8 24 28 12 )
|
( 8 24 28 12 )
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
patch output
|
patch output
|
||||||
(
|
(
|
||||||
( 19 3 7 23 )
|
( 19 3 7 23 )
|
||||||
( 23 7 11 27 )
|
( 23 7 11 27 )
|
||||||
( 27 11 15 31 )
|
( 27 11 15 31 )
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
wall fixedWalls
|
wall fixedWalls
|
||||||
(
|
(
|
||||||
|
|
||||||
( 12 28 29 13 )
|
( 12 28 29 13 )
|
||||||
( 13 29 30 14 )
|
( 13 29 30 14 )
|
||||||
( 14 30 31 15 )
|
( 14 30 31 15 )
|
||||||
|
|
||||||
( 0 1 17 16 )
|
( 0 1 17 16 )
|
||||||
( 1 2 18 17 )
|
( 1 2 18 17 )
|
||||||
( 2 3 19 18 )
|
( 2 3 19 18 )
|
||||||
|
|
||||||
|
|
||||||
)
|
)
|
||||||
empty frontAndBack
|
empty frontAndBack
|
||||||
(
|
(
|
||||||
|
|
||||||
( 0 4 5 1 )
|
( 0 4 5 1 )
|
||||||
( 1 5 6 2 )
|
( 1 5 6 2 )
|
||||||
( 2 6 7 3 )
|
( 2 6 7 3 )
|
||||||
( 4 8 9 5 )
|
( 4 8 9 5 )
|
||||||
( 5 9 10 6 )
|
( 5 9 10 6 )
|
||||||
( 6 10 11 7 )
|
( 6 10 11 7 )
|
||||||
( 8 12 13 9 )
|
( 8 12 13 9 )
|
||||||
( 9 13 14 10 )
|
( 9 13 14 10 )
|
||||||
( 10 14 15 11 )
|
( 10 14 15 11 )
|
||||||
|
|
||||||
( 16 17 21 20 )
|
( 16 17 21 20 )
|
||||||
( 17 18 22 21 )
|
( 17 18 22 21 )
|
||||||
( 18 19 23 22 )
|
( 18 19 23 22 )
|
||||||
( 20 21 25 24 )
|
( 20 21 25 24 )
|
||||||
( 21 22 26 25 )
|
( 21 22 26 25 )
|
||||||
( 22 23 27 26 )
|
( 22 23 27 26 )
|
||||||
( 24 25 29 28 )
|
( 24 25 29 28 )
|
||||||
( 25 26 30 29 )
|
( 25 26 30 29 )
|
||||||
( 26 27 31 30 )
|
( 26 27 31 30 )
|
||||||
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
@ -139,8 +139,8 @@ patches
|
||||||
|
|
||||||
mergePatchPairs
|
mergePatchPairs
|
||||||
(
|
(
|
||||||
//(0 4 7 3)
|
//(0 4 7 3)
|
||||||
//(1 5 6 2)
|
//(1 5 6 2)
|
||||||
);
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
|
@ -17,38 +17,36 @@ FoamFile
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
boundaryCellSize 4.5;
|
boundaryCellSize 4.5;
|
||||||
//keepCellsIntersectingBoundary 1;
|
//keepCellsIntersectingBoundary 1;
|
||||||
maxCellSize 9;
|
maxCellSize 9;
|
||||||
//minCellSize 0.375;
|
//minCellSize 0.375;
|
||||||
|
|
||||||
surfaceFile "socket.fms";
|
surfaceFile "socket.fms";
|
||||||
|
|
||||||
boundaryLayers
|
boundaryLayers
|
||||||
{
|
{
|
||||||
maxFirstLayerThickness 2.0;
|
maxFirstLayerThickness 2.0;
|
||||||
nLayers 1;
|
nLayers 1;
|
||||||
thicknessRatio 1.2;
|
thicknessRatio 1.2;
|
||||||
|
|
||||||
patchBoundaryLayers
|
patchBoundaryLayers
|
||||||
{
|
{
|
||||||
|
|
||||||
patch7
|
patch7
|
||||||
{
|
{
|
||||||
allowDiscontinuity 0;
|
allowDiscontinuity 0;
|
||||||
maxFirstLayerThickness 1.0;
|
maxFirstLayerThickness 1.0;
|
||||||
nLayers 2;
|
nLayers 2;
|
||||||
thicknessRatio 1.1;
|
thicknessRatio 1.1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
localRefinement
|
localRefinement
|
||||||
{
|
{
|
||||||
|
|
||||||
patch15
|
patch15
|
||||||
{
|
{
|
||||||
additionalRefinementLevels 1;
|
additionalRefinementLevels 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
subset1
|
subset1
|
||||||
|
|
Reference in a new issue