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

fvMatrix solve and the updating of Fields

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 15, 2017, 19:51
Default fvMatrix solve and the updating of Fields
  #1
New Member
 
Basel Abu-sinni
Join Date: Mar 2017
Posts: 6
Rep Power: 2
BaselAS is on a distinguished road
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.
BaselAS is offline   Reply With Quote

Old   March 16, 2017, 15:24
Default
  #2
Senior Member
 
Zeppo's Avatar
 
Sergei
Join Date: Dec 2009
Posts: 195
Rep Power: 10
Zeppo is on a distinguished road
Then you don't need to solve the matrix equation at all. Just use your own values for T.
Zeppo is offline   Reply With Quote

Old   March 16, 2017, 15:58
Default
  #3
New Member
 
Basel Abu-sinni
Join Date: Mar 2017
Posts: 6
Rep Power: 2
BaselAS is on a distinguished road
Yes, how do I do that inside a simple.loop?

I apologize I am barely even considered a beginner in OF
BaselAS is offline   Reply With Quote

Old   March 23, 2017, 08:30
Default
  #4
Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 69
Rep Power: 6
Santiago is on a distinguished road
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
Santiago is offline   Reply With Quote

Old   March 23, 2017, 09:51
Default
  #5
New Member
 
Basel Abu-sinni
Join Date: Mar 2017
Posts: 6
Rep Power: 2
BaselAS is on a distinguished road
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
BaselAS is offline   Reply With Quote

Reply

Tags
fields, fvmatrix, solve, update

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



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