# fvMatrix solve and the updating of Fields

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

 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: 2 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: 195 Rep Power: 10 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: 2 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 Member   Santiago Lopez Castano Join Date: Nov 2012 Posts: 69 Rep Power: 6 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: 2 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

All times are GMT -4. The time now is 21:29.