|
[Sponsors] |
March 15, 2017, 19:51 |
fvMatrix solve and the updating of Fields
|
#1 |
New Member
Basel Abu-sinni
Join Date: Mar 2017
Posts: 6
Rep Power: 9 |
I've been digging through the documentation for a couple of days, I've yet to discover how or where field gets updated with new values after each iteration.
For instance in Laplacianfoam, how is the temperature field T gets updated after the fvMatrix TEqn is solved? My intent is to override this stage and plug in my own solution to replace T. Thanks in advance! Basel [EDIT] SOLVED: T[i] = val; Last edited by BaselAS; March 23, 2017 at 09:52. |
|
March 16, 2017, 15:24 |
|
#2 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21 |
Then you don't need to solve the matrix equation at all. Just use your own values for T.
|
|
March 16, 2017, 15:58 |
|
#3 |
New Member
Basel Abu-sinni
Join Date: Mar 2017
Posts: 6
Rep Power: 9 |
Yes, how do I do that inside a simple.loop?
I apologize I am barely even considered a beginner in OF |
|
March 23, 2017, 08:30 |
|
#4 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 |
You want to give an initial field? Or you want to give a prescribed field? What's the point of using laplacianFoam if ypu already know T?
Sent from my GT-I8190L using CFD Online Forum mobile app |
|
March 23, 2017, 09:51 |
|
#5 |
New Member
Basel Abu-sinni
Join Date: Mar 2017
Posts: 6
Rep Power: 9 |
I apologize I haven't been clear with my purpose:
I'm using an external solver to solve the system, the solution I get in this case should replace the values of the temperature field T. Anyway, the issue is solved, it's as simple as T[i] = solution[i] Thank you both for your replies |
|
Tags |
fields, fvmatrix, solve, update |
|
|