diff --git a/src/rigidBodyDynamics/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C b/src/rigidBodyDynamics/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C index 9bcd058092f9c09e6a0122fb43a4fdd570e25492..89ccf9aa87eaabe67a5ceb19d34281592289ca47 100644 --- a/src/rigidBodyDynamics/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C +++ b/src/rigidBodyDynamics/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -146,7 +146,7 @@ bool Foam::RBD::restraints::linearAxialAngularSpring::read refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I); - if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) + if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL) { FatalErrorInFunction << "referenceOrientation " << refQ_ << " is not a rotation tensor. " diff --git a/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C b/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C index a2f0f19cfa7c5357bdaa13a42fe30fa9bd3ceca3..32e05af835204a1c08a3ec95ef7f7ab5e8b82e6e 100644 --- a/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C +++ b/src/rigidBodyDynamics/restraints/prescribedRotation/prescribedRotation.C @@ -164,7 +164,7 @@ bool Foam::RBD::restraints::prescribedRotation::read refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I); - if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) + if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL) { FatalErrorInFunction << "referenceOrientation " << refQ_ << " is not a rotation tensor. " diff --git a/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C b/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C index 9e146fddff53aa143cdb8847c3e884e3ac8375f0..e18b25aeb1b34d57008d248543f51b04b2899e96 100644 --- a/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C +++ b/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/linearAxialAngularSpring/linearAxialAngularSpring.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -150,7 +150,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::read refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I); - if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) + if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL) { FatalErrorInFunction << "referenceOrientation " << refQ_ << " is not a rotation tensor. " diff --git a/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/sphericalAngularSpring/sphericalAngularSpring.C b/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/sphericalAngularSpring/sphericalAngularSpring.C index b797b7118ea0a8c05786c808d00371a43902cd2f..746620afbd89cac19d7c0fac3bc2144bc48e69bf 100644 --- a/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/sphericalAngularSpring/sphericalAngularSpring.C +++ b/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/sphericalAngularSpring/sphericalAngularSpring.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -124,7 +124,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularSpring::read refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I); - if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) + if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL) { FatalErrorInFunction << "referenceOrientation " << refQ_ << " is not a rotation tensor. " diff --git a/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/tabulatedAxialAngularSpring/tabulatedAxialAngularSpring.C b/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/tabulatedAxialAngularSpring/tabulatedAxialAngularSpring.C index 18e1e8bfc561df4da26d22d49a49e03a6c9ed830..675ea15034b4a5ad3ac6de96149be294b91c4ca1 100644 --- a/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/tabulatedAxialAngularSpring/tabulatedAxialAngularSpring.C +++ b/src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/tabulatedAxialAngularSpring/tabulatedAxialAngularSpring.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -151,7 +151,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::tabulatedAxialAngularSpring::read refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I); - if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9) + if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL) { FatalErrorInFunction << "referenceOrientation " << refQ_ << " is not a rotation tensor. " diff --git a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict index 244b9b7177823732a9e78d1511cc3fe2a20015e1..84656980b7b3fd96e54d21221ce7c0572518a9fb 100644 --- a/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict +++ b/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict @@ -196,7 +196,7 @@ castellatedMeshControls // section reachable from the locationInMesh is kept. // NOTE: This point should never be on a face, always inside a cell, even // after refinement. - locationInMesh (3 0.28 0.43); + locationInMesh (3.12 0.2833 0.4322); // Whether any faceZones (as specified in the refinementSurfaces) diff --git a/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/system/snappyHexMeshDict b/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/system/snappyHexMeshDict index 7cc3d37290ca0d77b86c4ca2137ba0b3b8e104e4..b83aa6b7128224298274366adf0b820ea88cd6fa 100644 --- a/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/system/snappyHexMeshDict +++ b/tutorials/mesh/snappyHexMesh/iglooWithFridgesDirectionalRefinement/system/snappyHexMeshDict @@ -257,7 +257,7 @@ castellatedMeshControls // section reachable from the locationInMesh is kept. // NOTE: This point should never be on a face, always inside a cell, even // after refinement. - locationInMesh (3 0.28 0.43); + locationInMesh (3.12 0.2833 0.4322); // Whether any faceZones (as specified in the refinementSurfaces)