CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Change RULES of a simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2022, 06:53
Default Change RULES of a simulation
  #1
New Member
 
Riccardo
Join Date: Feb 2022
Location: Copenhagen
Posts: 7
Rep Power: 4
Ric_ is on a distinguished road
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
Attached Files
File Type: zip Sim.zip (4.9 KB, 1 views)
Ric_ is offline   Reply With Quote

Old   February 12, 2022, 16:12
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,815
Rep Power: 32
Opaque will become famous soon enough
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.
Ric_ likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   February 12, 2022, 21:00
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,728
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   February 13, 2022, 05:01
Default
  #4
New Member
 
Riccardo
Join Date: Feb 2022
Location: Copenhagen
Posts: 7
Rep Power: 4
Ric_ is on a distinguished road
Good morning,

Thanks a lot for the reply.
The solution proposed by Opaque is very simple, but effective!

Thanks,
Riccardo
Ric_ is offline   Reply With Quote

Reply

Tags
change rules, simulation rules, temperature of solid


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:19.