CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

OpenFoam and complex numbers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2005, 06:38
Default Can OpenFoam handle fields of
  #1
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
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

U=cosh(y*sqrt(i*omega/nu))

where i=sqrt(-1)

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

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

N
niklas is offline   Reply With Quote

Old   July 12, 2005, 06:52
Default Yes OpenFOAM supports complex
  #3
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
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

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

Old   June 13, 2017, 06:25
Default complex geometric fields
  #4
Member
 
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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 11:06.
Ali Blues is offline   Reply With Quote

Reply


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 Off
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 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


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