|
[Sponsors] |
rhoPimpleFoam & fvOptions - defined but not applied |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 19, 2019, 04:09 |
rhoPimpleFoam & fvOptions - defined but not applied
|
#1 | ||
Member
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 16 |
Hi All
I am running a simulation around a heating element. I have a container i would like to see the effect of inlet velocity and outlet placement on the internal temperature of the air. I have a heating element whose temperature i fix with fvOptions. I apply the cellset through topoSet so that i can adjust its location easily. Code:
heatSource { type scalarFixedValueConstraint; active true; selectionMode cellSet; cellSet heater; fieldValues { T 400; } scalarFixedValueConstrainteCoeffs { selectionMode cellSet; } } Code:
thermoType { type hePsiThermo; mixture pureMixture; transport sutherland; thermo hConst; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } mixture { specie { molWeight 28.9; } thermodynamics { Cp 1007; Hf 0; } transport { As 1.4792e-06; Ts 116; } } Quote:
Quote:
|
|||
February 19, 2019, 05:07 |
|
#2 | |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
Quote:
Your fvOptions term applies to the variable "T". If you don't have a T variable in your 0/ folder or your solver does not use the T variable from your 0/ folder your fvOptions term does not apply. I just did a quick look-over of the rhoPimpleFoam files and it does not seem to use the T variable.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return |
||
February 19, 2019, 05:15 |
|
#3 | |
Member
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 16 |
Hi Robert
Thanks for the reply I am using the angledDuct case as my base. It uses a T field in the 0 folder. Quote:
Which confuses me. I assume T would be included in the rhoPimpleFoma solver but when i looked at he .C file i did not see it. |
||
February 19, 2019, 07:07 |
|
#4 | |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
Quote:
Have a look for yourself but i would think that the T file is included to provide BC's and not the variable itself. Thus it does not include the fvOptions term. But i don't work with your solver or anything temperature related. So i might be wrong afterall.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return |
||
February 19, 2019, 08:45 |
|
#5 | ||
Member
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 16 |
Yeah, i saw this post before.
Quote:
Which makes me think i need to specify enthalpy (h) and not temperature in fvOptions Quote:
Will try the enthalpy approach and let you know |
|||
February 19, 2019, 21:40 |
|
#6 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 |
What you're probably looking for is fixedTemperatureConstraint. I've not tested it myself for rhoPimpleFoam, but it is used here (https://github.com/OpenFOAM/OpenFOAM...tant/fvOptions) for a rhoSimpleFoam tutorial so there's no reason it shouldn't work.
Caelan |
|
April 11, 2019, 11:55 |
|
#7 |
Member
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 16 |
Hi All
Thanks for the info and help. I ended up using an stl (since the heater is a simple box) and then with snappy i assigned a patch name. this name was then use in the T file of my 0 folder to set the temperature. Allowed me to move my heater around easy enough and meant i could set the temperature directly. Cheers |
|
Tags |
fvoptions, heat transfer, rhopimplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I use fvOptions to couple a solid region and a fluid region? | titanchao | OpenFOAM Running, Solving & CFD | 4 | January 14, 2022 08:55 |
Adding fvOptions to turbulence model | slottedLemon | OpenFOAM Programming & Development | 13 | May 28, 2020 13:27 |
New output variable for source term in fvoptions - without changing the solver | vincent.clary | OpenFOAM Programming & Development | 2 | June 26, 2018 06:21 |
Transient User Defined Function in CFX | Niru | CFX | 0 | November 12, 2013 18:07 |
What type is defined as the interfaces between stator and stator on OF-2.1.1? | renyun0511 | OpenFOAM Running, Solving & CFD | 3 | May 18, 2013 09:11 |