CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Solving just simple algebraic equation implicitly (https://www.cfd-online.com/Forums/openfoam-solving/219801-solving-just-simple-algebraic-equation-implicitly.html)

Jung hoo August 9, 2019 02:13

Solving just simple algebraic equation implicitly
 
Hi foamers, I'm trying to edit the source code of interFoam to implement sediment load.

And to do this, I need to estimate the value of 'x' in below equation :

x/abs(x) + [abs(u-x)]*(u-x) == a

'u' is known vectorfield

and 'x' is unknown vectorfield that I want to find at every cells.

'a' is just a constant.

but I don't have any idea to deal with such an implicit solution on the source code in OpenFOAM.

I'll appreciate any comments about this.

Thanks in advance :)


All times are GMT -4. The time now is 14:14.