mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Reverted the Americanism "math" back to the original "mathematical" and reverted name of
the include file back to mathematicalConstants.H to make upgrading code slightly easier.
This commit is contained in:
@ -32,7 +32,7 @@ Description
|
||||
|
||||
#include "graph.H"
|
||||
#include "OFstream.H"
|
||||
#include "mathConstants.H"
|
||||
#include "mathematicalConstants.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
@ -50,7 +50,7 @@ int main()
|
||||
|
||||
scalarField b = 0.5*(1.0 + erf(x));
|
||||
scalarField c = 1.0 - b;
|
||||
scalarField gradb = (1/::sqrt(constant::math::pi))*exp(-sqr(x));
|
||||
scalarField gradb = (1/::sqrt(constant::mathematical::pi))*exp(-sqr(x));
|
||||
scalarField lapb = -2*x*gradb;
|
||||
|
||||
r = lapb*b*c/(gradb*gradb);
|
||||
|
||||
Reference in New Issue
Block a user