It means that you are trying to solve for two variables within one equation.
|
Thanks. That is clear . However a formulation like below ,
Code:
fvScalarMatrix hEqn |
Hi BalKrishna
Have you found the solution for this problem. How can some body solve 2 variables here. Regards Rohith |
Dear sir,
I am getting the error after using Foam::tanh(...) The error is: call of overloaded ‘tanh(const int&)’ is ambiguous c[ignCell] =1-Foam::tanh(ignSite.cells()[icelli]); The code is: forAll(ign.sites(), i) { const ignitionSite& ignSite = ign.sites()[i]; if (ignSite.igniting()) { forAll(ignSite.cells(), icelli) { label ignCell = ignSite.cells()[icelli]; c[ignCell] =1-Foam::tanh(ignSite.cells()[icelli]); } } } |
Dear sir,
I am getting the error after using Foam::tanh(...) The error is: call of overloaded ‘tanh(const int&)’ is ambiguous c[ignCell] =1-Foam::tanh(ignSite.cells()[icelli]); The code is: forAll(ign.sites(), i) { const ignitionSite& ignSite = ign.sites()[i]; if (ignSite.igniting()) { forAll(ignSite.cells(), icelli) { label ignCell = ignSite.cells()[icelli]; c[ignCell] =1-Foam::tanh(ignSite.cells()[icelli]); } } } |
Hi Sandip,
I hope tanh in openfoam takes only a value i.e if you define a dimensionedScalar then please define its value. See that there exists no Fields. I See Ignsites is a constant, i am not sure. If you can define it so. Best Regards, Rohith |
Thanks Raghavendra
I have tried with the interger value 5, but still i am getting the same error: call of overloaded ‘tanh(int)’ is ambiguous c[ignCell] =Foam::tanh(5); |
Hello friends,
I am compile the below mention code and i am getting the error error: ‘distance’ was not declared in this scope c = Foam::tanh[distance]; Code:
|
Quote:
Hi i knw this post is old but i need help on this problem :D in my case Cp varies in different locations, so I need to write energy equation with enthalpy. I wrote it like this: Code:
fvScalarMatrix EEqn can u help me?:confused: |
Hi,
The only error i see is that you have defined enthalpy as E=cp*T But it is deltaE = cp*deltaT. Hope it helps Regards, Rohith |
Quote:
thank u for ur response:) but I didnt get it!:confused: if we replace E with cp*T in Code:
( Code:
( actually first I tried TEqn like this: Code:
( but when I assume that cp is constant! like this: Code:
( so I tried EEqn :D |
All times are GMT -4. The time now is 08:44. |