|
[Sponsors] |
how to get the unit volScalar, surfaceScalar and volVector |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 25, 2021, 13:20 |
how to get the unit volScalar, surfaceScalar and volVector
|
#1 |
New Member
behnamCheraghi
Join Date: Feb 2021
Posts: 14
Rep Power: 5 |
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? |
|
July 25, 2021, 17:26 |
|
#2 |
Member
MNM
Join Date: Aug 2017
Posts: 67
Rep Power: 8 |
||
July 26, 2021, 00:50 |
|
#3 |
New Member
behnamCheraghi
Join Date: Feb 2021
Posts: 14
Rep Power: 5 |
in fact i am looking for a property on the cell face using *upwind* schemes, but without the phi magnitude.
for example .(mdot U) without the mdot magnitude. by adding an small values, again, there is a possibility that the values will be zero. because there are negative and positive values of it. Last edited by behnamEll; July 26, 2021 at 00:52. Reason: mathematical refinments |
|
July 26, 2021, 07:55 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
Quote:
stabilise() ? Eg, x / stabilise(y, SMALL) |
||
Tags |
unit phi, unit surfacescalar, unit volscalar, unit volvector |
Thread Tools | Search this Thread |
Display Modes | |
|
|