Building a solver with fixedTemperatureConstraint using fvOptions
Dear Foamers,
I have been using OpenFOAM for several months for a student project. Everything has been working quite well. But at the moment I am a bit stuck at a problem. Maybe someone can help…:) For version 2.2.0 OpenFOAM seems to have introduced a very nice new feature of fvOptions called ‘fixedTemperatureConstraint’, to ‘to fix the temperature to a given value’ (see http://www.openfoam.org/version2.2.0/fvOptions.php). I would like to use this feature to set the temperature of air flowing through a heater to a fixed temperature instead of having to model the heater as a heat source. My input for the fvOptions file would look like this Code:
fixedTemperaure1
Code:
fvScalarMatrix TEqn Compiling of the solver works fine. But when trying to run a case, I get the following error massage. Code:
--> FOAM FATAL ERROR: Is there a thermophysical model necessary for the implementation of the fixedTemperatureConstraint? If not, do you have any hints where the error messages might come from? Thank you very much for your help! - Fluido - |
Hello,
My guess is you forget the "-I$(LIB_SRC)/fvOptions/lnInclude" in your Make/options file. regards, olivier |
Hey!
You have a simple transport equation for a scalar T, so you have to use the explicitSetValue fvOption. The fixedTemperatureConstraint is for energy equations. Check also the post of olivier about the wmake options. regards, Andre |
Quote:
thank you for your idea! I checked the options file once again. The fvOptions entry is there. So, that's not the problem... Regards - Fluido - |
Quote:
thank you for the info! If the fixedTemperatureConstraint is made for energy equations, the call for a thermophysical model makes sense somehow. Can I find this information somewhere inside OpenFOAM (without having to dig deep into the code) or somewhere else? I will try the explicitSetValue option now... Regards - Fluido - |
There was a little error in my original post. The error message does not appear when compiling, but when running a case with the compiled solver. So, compiling of the solver works, without any errors.
|
Quote:
Code:
void Foam::fv::fixedTemperatureConstraint::setValue Regards, Andre |
Quote:
Meanwhile I tried the explicitSetValue option. I just changed the input in the fvOptions file to: Code:
source1 So, thank you again! - Fluido - |
Dear All,
I am trying to do something like what you did, but instead of temperatures, I wanna add in a certain cellSet a constant bodyForce. Do you have an idea about I can do this? Thanks a lot, Samuele |
Quote:
any help is appreciated. Regards, s.v.Ramana |
All times are GMT -4. The time now is 23:17. |