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

Incompatible Field of operation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 11, 2012, 14:46
Default Incompatible Field of operation
  #1
Member
 
Tayo
Join Date: Aug 2012
Location: FL
Posts: 94
Rep Power: 5
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: 727
Rep Power: 18
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
Location: FL
Posts: 94
Rep Power: 5
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

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


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


All times are GMT -4. The time now is 11:05.