CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Implementing FFT in Field Function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2020, 06:03
Post Implementing FFT in Field Function
  #1
New Member
 
Madrigal
Join Date: Oct 2020
Location: Germany
Posts: 19
Rep Power: 5
CFD2DXY is on a distinguished road
Hello everybody,

I am new to this forum and a doctoral student.
I am currently using Star CCM+ to simulate fluids flowing down a wire. This works very well.

I use a field function on the inlet to set the speed of the fluid, which then flows down the wire.
Using another field function, I now generate a forced disturbance (frequency) in the flow (sinus function). Using post-processing (FFT) I also find the frequency of the disturbance at the inlet.

Now to my question: I have seen in different publications that also a white noise was simulated. For this I must add to my above mentioned field function for the velocity an another field function, instead of the forced interference frequency (see picture). For this I must add to my above mentioned field function for the velocity another, instead of the forced interference frequency (see attached Thumbnails). How should I implement the lower equation as a field function ?

I would be super grateful if someone could help me .

best regards

CFD2DXY
CFD2DXY is offline   Reply With Quote

Old   November 3, 2020, 09:28
Cool Table/Fieldfunktion Problem
  #2
New Member
 
Madrigal
Join Date: Oct 2020
Location: Germany
Posts: 19
Rep Power: 5
CFD2DXY is on a distinguished road
Hello everybody,

I have now solved the problem with the help of a matlab code. I was able to generate random values with a function. Now I am confronted with the problem that I want to add a random value to my function for the velocity at the inlet (radial profile) at every time step.

I have written the following field function:
${velocity u} + interpolateTable(@Table("file"), "column1", LINEAR, "column0",${TimeStep})

where column1: timestep from 0 to 8 seconds
and column0: Random value, which should be added to the field function at each time step.

I have started the simulation but still have a constant inlet-speed.
Does anyone have an idea what my error could be?

Greetings
CFD2DXY is offline   Reply With Quote

Old   November 3, 2020, 11:30
Default
  #3
New Member
 
Madrigal
Join Date: Oct 2020
Location: Germany
Posts: 19
Rep Power: 5
CFD2DXY is on a distinguished road
Quote:
Originally Posted by CFD2DXY View Post
Hello everybody,

I have now solved the problem with the help of a matlab code. I was able to generate random values with a function. Now I am confronted with the problem that I want to add a random value to my function for the velocity at the inlet (radial profile) at every time step.

I have written the following field function:
${velocity u} + interpolateTable(@Table("file"), "column1", LINEAR, "column0",${TimeStep})

where column1: timestep from 0 to 8 seconds
and column0: Random value, which should be added to the field function at each time step.

I have started the simulation but still have a constant inlet-speed.
Does anyone have an idea what my error could be?

Greetings
I solved my problem...

${velocity u} + interpolateTable(@Table("file"), "column1", LINEAR, "column0",${Time})

greetz
CFD2DXY 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
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 10:20
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


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