|
[Sponsors] |
February 4, 2014, 15:49 |
Modify existing velocity field
|
#1 |
Member
Tony
Join Date: Nov 2013
Posts: 35
Rep Power: 13 |
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 |
|
February 5, 2014, 09:21 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
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) |
|
February 5, 2014, 10:48 |
|
#3 |
Member
Tony
Join Date: Nov 2013
Posts: 35
Rep Power: 13 |
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 |
|
February 5, 2014, 10:50 |
|
#4 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
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) |
|
Tags |
funkysetfields, random |
|
|
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 |