CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Randomise Field Function Object

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2017, 04:40
Default Randomise Field Function Object
  #1
New Member
 
Mattia
Join Date: Sep 2017
Posts: 1
Rep Power: 0
MattiaC is on a distinguished road
Hello everybody,

I am trying to modify the pimpleFoam solver so that a random perturbation is added at every time step once the momentum equation is solved. For this purpose I found the 'randomise' Field Function Object which looks appropriate for modifying a new field that I want to add as perturbation.

Does anyone has any experience using this function? I am quite new both to OpenFOAM and C++ language and I cannot understand exactly how to include it in the solver code (if possible). What I did so far is to create a new field in createFields.H on which I would like this function to act on inside the main code. Also any other documentation of function which works in a similar way or any guide which explains this topic would be very helpful!
MattiaC 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
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 14:56
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56


All times are GMT -4. The time now is 02:52.