|
[Sponsors] |
February 12, 2022, 06:53 |
Change RULES of a simulation
|
#1 |
New Member
Riccardo
Join Date: Feb 2022
Location: Copenhagen
Posts: 7
Rep Power: 4 |
Good morning,
I am simulating the fluid dynamics of a tube that contains a porous medium. A gaseous mixture (mainly CO, H2, CO2 and small amounts of inert gases) enters the tube at 473K and is heated up by the presence of an external heating medium (that surrounds the tube and is assumed to be at a constant temperature of 240°C). I would like the porous medium to have the same temperature as the fluid along the entire tube. In other words, I would like to impose "Isothermal" in the "Heat transfer" option of the "Solid Models" tab, and then insert the variable temperature ("T") instead of a constant value (the temperature of my solid changes and it is equal to the one of the fluid). When I try to do it, I get the following message: Parameter 'Solid Temperature' in object '/FLOW:Flow Analysis 1/DOMAINefault Domain/SOLID MODELS/HEAT TRANSFER MODEL' is not allowed to be assigned an expression value that depends on variables. It must be assigned a numeric value, or an expression that resolves to a constant value. I have read that it is it possible to change the rules of a simulation, but I was unable to do it. Could anyone explain in detail how I should put the dependency of the "Solid Temperature" to the option "ANY" and then make my file read my new RULES? I have attached my ccl file in the zipped folder. Thanks a lot, Riccardo |
|
February 12, 2022, 16:12 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,825
Rep Power: 33 |
Do you want to have the whole solid fraction of the porous domain at a single uniform temperature, or locally at the temperature of the fluid?
For the former, add a source to the solid side with the proper coefficients and you can force it to be any temperature you want, For the latter, just use a very large interface fluid-solide heat transfer coefficient in the porous settings. Either model should be trivial.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
February 12, 2022, 21:00 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,746
Rep Power: 143 |
And, adding to Opaque's comments:
You cannot just edit the RULES file to add new functionality. Editing the RULES file is almost always a really bad idea. Leave the RULES file as it is an do any modelling you want in the supported interfaces - either CFX-Pre, CCL or user fortran.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
February 13, 2022, 05:01 |
|
#4 |
New Member
Riccardo
Join Date: Feb 2022
Location: Copenhagen
Posts: 7
Rep Power: 4 |
Good morning,
Thanks a lot for the reply. The solution proposed by Opaque is very simple, but effective! Thanks, Riccardo |
|
Tags |
change rules, simulation rules, temperature of solid |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TUI command to change the simulation to transient | Rashi | FLUENT | 2 | July 7, 2021 01:14 |
Determination of Air Change Rate in a room through CFD simulation in Ansys Fluent | Manu4CFD | FLUENT | 0 | January 10, 2019 01:13 |
Direct numerical simulation of species transport equation with phase change | Pmaroul | Main CFD Forum | 2 | October 12, 2018 16:02 |
sonicFoam simulation, no change anymore | homersimpson | OpenFOAM Running, Solving & CFD | 0 | March 10, 2017 03:49 |
How to change orientation of body in boat simulation?? | sanjay | STAR-CCM+ | 7 | January 15, 2012 00:24 |