|
[Sponsors] |
December 11, 2012, 14:46 |
Incompatible Field of operation
|
#1 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
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) ); |
|
December 11, 2012, 15:41 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
Including it explicitly might work, but I don't think that is what you are after.
|
|
December 11, 2012, 16:04 |
|
#3 |
Member
Tayo
Join Date: Aug 2012
Posts: 94
Rep Power: 14 |
||
|
|
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 |