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

Modify existing velocity field

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 4, 2014, 15:49
Default Modify existing velocity field
  #1
Member
 
Tony
Join Date: Nov 2013
Posts: 35
Rep Power: 3
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 Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,124
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
you can modify your solver in createFields, then after where it reads velocity you can add some thing like U=U + U*rand()
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   February 5, 2014, 10:48
Default
  #3
Member
 
Tony
Join Date: Nov 2013
Posts: 35
Rep Power: 3
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 Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,124
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
if you change only creatFields.H, then it would be only in first iteration
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Reply

Tags
funkysetfields, random

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
A Question About Setting Whole Velocity Field Using "Proflie" in FLUENT adsl17754 FLUENT 4 July 10, 2014 07:42
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 07:43
fixed velocity field Glen CFX 3 August 28, 2006 12:17
transient temperature field with constant velocity Törnquist CFX 0 September 16, 2003 04:22


All times are GMT -4. The time now is 18:33.