complex numbers in swak4foam
Hi all,
I wish to implement the Womersley equation at patches of my model. Can utilize complex numbers in groovyBC type?. Regards. |
Quote:
|
Quote:
Dear Bernhard, i am sorry to pick up such an old thread but i have a question regarding complex numbers and complex field operations in combination with swak4Foam and this is the only relevant post that i have found. My question is : how can i declare complex numbers or even operations with complex numbers, inside an expressionField in controlDict? Is there any special way that i can write the imaginary part ( i ) ? Thank you very much in advance. |
Quote:
Sorry. There currently is no built-in support for complex numbers in swak4Foam. Complex numbers are not really "first class citizens" in OpenFOAM (there is no volComplexField for instance) and I never had a need for them. So you'll have to keep complex and real part of your complex variable in two separate scalar fields and do the calculations for them by hand |
Quote:
Ok i see. Thank you very much for your reply and your advice. |
All times are GMT -4. The time now is 14:48. |