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

Incompatible Field of operation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2012, 14:46
Default Incompatible Field of operation
  #1
Member
 
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14
tayo is on a distinguished road
I want to include pressure in my energy eqn in the form below. It compiles fine but whenever I run it the case, it gives an error
"incompatible fields of operation
[T] + [p_rgh]"

I guess it means I can only solve for one field per scalar matrix. How can I go around this to include pressure in the energy eqn? Thanks.

fvScalarMatrix TEqn
(
fvm::ddt(rhoCp,T)
+ fvm::div(rhoPhiCpf,T)
+ fvm::div(phi,p_rgh)
- fvm::laplacian(kappa,T)
);
tayo is offline   Reply With Quote

Old   December 11, 2012, 15:41
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Including it explicitly might work, but I don't think that is what you are after.
mturcios777 is offline   Reply With Quote

Old   December 11, 2012, 16:04
Default
  #3
Member
 
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14
tayo is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
Including it explicitly might work, but I don't think that is what you are after.
Thanks. it works when I solve it explicitly but according to your statement, what should I look out for?
tayo 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perfoming operation if field is present sega OpenFOAM Programming & Development 13 August 16, 2023 06:08
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Operation to READ_IF_PRESENT field sega OpenFOAM Programming & Development 6 February 15, 2011 10:57
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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