mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: single precision: various small fixes. See #1086.
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -146,7 +146,7 @@ bool Foam::RBD::restraints::linearAxialAngularSpring::read
|
|||||||
|
|
||||||
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
||||||
|
|
||||||
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
|
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
||||||
|
|||||||
@ -164,7 +164,7 @@ bool Foam::RBD::restraints::prescribedRotation::read
|
|||||||
|
|
||||||
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
refQ_ = coeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
||||||
|
|
||||||
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
|
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -150,7 +150,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::linearAxialAngularSpring::read
|
|||||||
|
|
||||||
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
||||||
|
|
||||||
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
|
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -124,7 +124,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::sphericalAngularSpring::read
|
|||||||
|
|
||||||
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
||||||
|
|
||||||
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
|
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -151,7 +151,7 @@ bool Foam::sixDoFRigidBodyMotionRestraints::tabulatedAxialAngularSpring::read
|
|||||||
|
|
||||||
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
refQ_ = sDoFRBMRCoeffs_.lookupOrDefault<tensor>("referenceOrientation", I);
|
||||||
|
|
||||||
if (mag(mag(refQ_) - sqrt(3.0)) > 1e-9)
|
if (mag(mag(refQ_) - sqrt(3.0)) > ROOTSMALL)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
<< "referenceOrientation " << refQ_ << " is not a rotation tensor. "
|
||||||
|
|||||||
@ -196,7 +196,7 @@ castellatedMeshControls
|
|||||||
// section reachable from the locationInMesh is kept.
|
// section reachable from the locationInMesh is kept.
|
||||||
// NOTE: This point should never be on a face, always inside a cell, even
|
// NOTE: This point should never be on a face, always inside a cell, even
|
||||||
// after refinement.
|
// after refinement.
|
||||||
locationInMesh (3 0.28 0.43);
|
locationInMesh (3.12 0.2833 0.4322);
|
||||||
|
|
||||||
|
|
||||||
// Whether any faceZones (as specified in the refinementSurfaces)
|
// Whether any faceZones (as specified in the refinementSurfaces)
|
||||||
|
|||||||
@ -257,7 +257,7 @@ castellatedMeshControls
|
|||||||
// section reachable from the locationInMesh is kept.
|
// section reachable from the locationInMesh is kept.
|
||||||
// NOTE: This point should never be on a face, always inside a cell, even
|
// NOTE: This point should never be on a face, always inside a cell, even
|
||||||
// after refinement.
|
// after refinement.
|
||||||
locationInMesh (3 0.28 0.43);
|
locationInMesh (3.12 0.2833 0.4322);
|
||||||
|
|
||||||
|
|
||||||
// Whether any faceZones (as specified in the refinementSurfaces)
|
// Whether any faceZones (as specified in the refinementSurfaces)
|
||||||
|
|||||||
Reference in New Issue
Block a user