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

How to get ap and ap0 from the discretised equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2014, 11:10
Default How to get ap and ap0 from the discretised equation
  #1
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 14
ahmmedshakil is on a distinguished road
Hi FOAMer's
I'm solving the following energy equation:
\rho c\frac{\partial T}{\partial t}=\nabla \cdot \left( \lambda \nabla T \right)-\rho L\frac{\partial {{\gamma }_{l}}}{\partial t}
The discretised form of the equation may be written as,
a_p \, T_{p}^{m+1}=a_p^{old} \, T_{p}^{old}+\sum\limits_{nb}{{{a}_{nb}}T_{nb}^{m+1}}+b
I can access to value of a_p using TEqn.A(), but I'm wondering about how to get a_p^{0}. Anyone please give an idea.

Thanks in advance.
ahmmedshakil is offline   Reply With Quote

Old   January 22, 2014, 09:56
Default
  #2
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 14
ahmmedshakil is on a distinguished road
Any one have idea ???
ahmmedshakil is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



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