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

Modify existing velocity field

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2014, 15:49
Default Modify existing velocity field
  #1
Member
 
Tony
Join Date: Nov 2013
Posts: 35
Rep Power: 13
wzx1989221 is on a distinguished road
Dear foamers,

Does anyone know that how I can add random number to an existing velocity filed?

I used funkySetFields to initialise a random velocity filed for my simulation, after it has run for some time, I want to restart the simulation by adding random number to the velocity field I've already got. Is there any way to achieve that?

Hope anyone can give me a hint. Thank you very much.

Best regards,
Tony
wzx1989221 is offline   Reply With Quote

Old   February 5, 2014, 09:21
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
you can modify your solver in createFields, then after where it reads velocity you can add some thing like U=U + U*rand()
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   February 5, 2014, 10:48
Default
  #3
Member
 
Tony
Join Date: Nov 2013
Posts: 35
Rep Power: 13
wzx1989221 is on a distinguished road
Hi Nima,

Thanks for the reply. I just wonder if I modify the solver, would the velocity field always be like that? Since I just want to modify the existing field and put it to run again, do you have any ideas about that?

Thank you very much.

Regards,
Tony
wzx1989221 is offline   Reply With Quote

Old   February 5, 2014, 10:50
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
if you change only creatFields.H, then it would be only in first iteration
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply

Tags
funkysetfields, random

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Question About Setting Whole Velocity Field Using "Proflie" in FLUENT adsl17754 FLUENT 5 July 31, 2018 05:29
foamCalc: Fatal io error calculating divergence of velocity field rendagar OpenFOAM Running, Solving & CFD 0 February 4, 2014 11:20
Solving transport equations with known velocity field Mojtaba.a OpenFOAM Running, Solving & CFD 6 August 6, 2012 08:43
fixed velocity field Glen CFX 3 August 28, 2006 13:17
transient temperature field with constant velocity Törnquist CFX 0 September 16, 2003 05:22


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