CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

OpenFoam and complex numbers

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 12, 2005, 05:38
Default Can OpenFoam handle fields of
Senior Member
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 10
panara is on a distinguished road
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


where i=sqrt(-1)

Any idea on how to do that?
panara is offline   Reply With Quote

Old   July 12, 2005, 05:48
Default from beta... z = x + iy Re(
Super Moderator
niklas's Avatar
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 22
niklas will become famous soon enoughniklas will become famous soon enough
from beta...
z = x + iy
Re( cosh(z) ) = cosh(x)cos(y)

niklas is offline   Reply With Quote

Old   July 12, 2005, 05:52
Default Yes OpenFOAM supports complex
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 15
henry is on a distinguished road
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


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.
henry is offline   Reply With Quote

Old   June 13, 2017, 05:25
Default complex geometric fields
New Member
Join Date: Jun 2015
Posts: 26
Rep Power: 4
Ali Blues is on a distinguished road
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 10:06.
Ali Blues is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 04:48
complex numbers for UDF korcan FLUENT 2 April 9, 2006 16: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 05:26

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