mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: finiteArea: improve robustness in code sections vulnerable to math errors
It has been observed that the finite-area framework is prone to numerical issues when zero-valued edge lenghts, edge/face normals and face areas exist. To improve exception handling at identified code sections to gracefully overcome math errors, the problematic entities are lower-bounded by SMALL.
This commit is contained in:
committed by
Mark OLESEN
parent
d5b7200295
commit
a0f1e98d24
@ -4,7 +4,7 @@
|
||||
sqrt
|
||||
(
|
||||
2*M_PI*sigma*sqr(aMesh.edgeInterpolation::deltaCoeffs())
|
||||
*aMesh.edgeInterpolation::deltaCoeffs()
|
||||
*mag(aMesh.edgeInterpolation::deltaCoeffs())
|
||||
/rhol
|
||||
)
|
||||
).value()*runTime.deltaT().value();
|
||||
|
||||
Reference in New Issue
Block a user