|
[Sponsors] |
July 12, 2005, 06:38 |
Can OpenFoam handle fields of
|
#1 |
Senior Member
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17 |
Can OpenFoam handle fields of a complex scalar and relative complex algebra operations?
I would like to create an initialization field that consist of the real part of a complex function of the y coordinate of the field.. something like U=cosh(y*sqrt(i*omega/nu)) where i=sqrt(-1) Any idea on how to do that? |
|
July 12, 2005, 06:48 |
from beta...
z = x + iy
Re(
|
#2 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
from beta...
z = x + iy Re( cosh(z) ) = cosh(x)cos(y) N |
|
July 12, 2005, 06:52 |
Yes OpenFOAM supports complex
|
#3 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
Yes OpenFOAM supports complex numbers and fields of complex numbers but I don't think all the functions you might need are currently supported and GeometricComplexFields are not instantiated. dnsFoam uses complex numbers as part of the forcing-field creation which uses a random-UO process and FFTs. Take a look in
OpenFOAM-1.1/src/randomProcesses for uses of complexFields to create the random-UO process and the use of it in dnsFoam. If you find that the functions you need are not implemented and you would like GeometricFields of complex numbers it won't be a great deal of work for you to add them. |
|
June 13, 2017, 06:25 |
complex geometric fields
|
#4 |
Member
Join Date: Jun 2015
Posts: 30
Rep Power: 11 |
Given that the topic is on development and not preprocessing, the thread has been moved to:
Complex geometric fields Last edited by Ali Blues; June 20, 2017 at 11:06. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VolVectorField of complex numbers | quba | OpenFOAM | 0 | December 17, 2007 09:06 |
Dimensionless numbers | kuba | FLUENT | 2 | September 6, 2007 05:48 |
complex numbers for UDF | korcan | FLUENT | 2 | April 9, 2006 17:24 |
FoamX does not eat numbers | Martin Lorenz (Lorenz) | OpenFOAM Pre-Processing | 9 | January 21, 2006 18:03 |
Power of complex numbers | fabianpk | OpenFOAM | 1 | September 28, 2005 06:26 |