how to get the unit volScalar, surfaceScalar and volVector
Hello every one,
I need to make a "unit phi" to get the div(phi,U)/mag(phi). but in this case, the 1/mag(phi) may lead to a core dumped (floating point exception) error. in fact, i try to make a surfaceScalar/volScalar/volVector such that: ------------------------------------------------------- if ( mag(surfaceScalar) == 0 ) surfaceScalar = 0; else surfaceScalar/mag(surfaceScalar); ------------------------------------------------------- can anyone help me? |
|
Quote:
stabilise() ? Eg, x / stabilise(y, SMALL) |
All times are GMT -4. The time now is 01:09. |