|
[Sponsors] |
July 18, 2013, 04:27 |
Incompatible field operations
|
#1 |
Member
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 13 |
Hi
I am Actually trying to solve enthalpy equation using a logic but i am in need to add a source term to it. But it delivers a message called Incompatible field operations, however i know that it is trying to solve two variables in one equation which should be an error. 1. But i have even tried to solve it in a different set and including the variable value here 2. I have aldready tried an explicit approach but doesnt work. Here is the Code Code:
{ fvScalarMatrix hbEqn ( fvm::div(phib, hb) - fvm::Sp(fvc::div(phib), hb) - fvm::laplacian(turbulenceb->alphaEff(), hb) == - fvc::div(phib, 0.5*magSqr(Ub), "div(phib,K)")+ activBereichb*(alphab*Ts-fvm::Sp(alphab,Tb)) ); hbEqn.relax(); hbEqn.solve(); pZonesb.addEnthalpySource(thermob, rhob, hbEqn); hbEqn.relax(); hbEqn.solve(); thermob.correct(); } Thank you in Advance |
|
July 19, 2013, 08:49 |
|
#2 |
New Member
Klas J
Join Date: Oct 2011
Location: Göteborg, Sweden
Posts: 10
Rep Power: 14 |
Hi,
Without having tested your code I guess the problem comes from the part: Code:
activBereichb*(alphab*Ts-fvm::Sp(alphab,Tb)) I guess you want to use the explicit name space (fvc) for all the factors in the right hand side. I hope this was giving some clarity. Best regards, Klas |
|
July 19, 2013, 08:52 |
|
#3 |
Member
Rohith
Join Date: Oct 2012
Location: Germany
Posts: 57
Rep Power: 13 |
Hi Klas
I have solved the problem with this aspect . Actually it was due to the same reason. I tried to figure it out. Thanks a lot Rohith |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 04:49 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Incompatible Field of operation | tayo | OpenFOAM | 2 | December 11, 2012 15:04 |
Is good initial guess field is neccessary ? | mmkr825 | OpenFOAM | 5 | October 17, 2012 12:58 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |