From be428aacd7f1a242f2fe65a6cde8431041b9aa4f Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 1 Jan 2015 13:31:21 +0000 Subject: [PATCH] particle::initCellFacePt(): Added suggestions to resolve failure to find particle Resolves bug report: http://www.openfoam.org/mantisbt/view.php?id=1461 --- .../explicitPorositySource/explicitPorositySource.H | 10 ++++++++-- src/lagrangian/basic/particle/particleI.H | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/fvOptions/sources/derived/explicitPorositySource/explicitPorositySource.H b/src/fvOptions/sources/derived/explicitPorositySource/explicitPorositySource.H index 417ddef1..f0d9427c 100644 --- a/src/fvOptions/sources/derived/explicitPorositySource/explicitPorositySource.H +++ b/src/fvOptions/sources/derived/explicitPorositySource/explicitPorositySource.H @@ -42,8 +42,14 @@ Description coordinateSystem { - e1 (0.70710678 0.70710678 0); - e2 (0 0 1); + type cartesian; + origin (0 0 0); + coordinateRotation + { + type axesRotation; + e1 (0.70710678 0.70710678 0); + e2 (0 0 1); + } } } } diff --git a/src/lagrangian/basic/particle/particleI.H b/src/lagrangian/basic/particle/particleI.H index e3c9a6e0..803a2000 100644 --- a/src/lagrangian/basic/particle/particleI.H +++ b/src/lagrangian/basic/particle/particleI.H @@ -756,8 +756,14 @@ inline void Foam::particle::initCellFacePt() // error. FatalErrorIn("void Foam::particle::initCellFacePt()") - << "cell, tetFace and tetPt search failure at position " - << position_ << nl << "for requested cell " << oldCellI + << " cell, tetFace and tetPt search failure at " + << "position " << position_ << nl + << " for requested cell " << oldCellI << nl + << " If this is a restart or " + "reconstruction/decomposition etc. it is likely that" + " the write precision is not sufficient.\n" + " Either increase 'writePrecision' or " + "set 'writeFormat' to 'binary'" << abort(FatalError); }