|
[Sponsors] |
Step CEL expression to specify initial temperature of a geometry |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 16, 2016, 03:02 |
Step CEL expression to specify initial temperature of a geometry
|
#1 |
New Member
Nomen Ose
Join Date: Jun 2016
Location: Melbourne, Australia
Posts: 19
Rep Power: 10 |
Hi guys,
I have 2 geometries attached with an interface between the bus front door and rear door. I need help in writing and applying a CEL expression which will specify the initial temperature of the outside geometry. I have the dimensions and details but i cant seem to get my expression right. The aim is to SET the initial temperature for the Outside geometry to T=40C and T=20C for inside bus geometry.. OUTSIDE GEOMETRY DETAILS(min y = -1.219, max y =11.2255) (min x = -5.86206, max x =14.1379) (min y = 0, max y =7.60093 More picture are attached to help clarify my case. PLEASE HELP ME!!!!!!!! Thanks in advance Regards, |
|
September 16, 2016, 15:31 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33 |
Are you familiar with the CEL "inside()@Locator" function ? Similar to the step function but uses mesh or physics entities, so you do not need
Let us say your mesh contains only two pieces: one for the interior, say MyInteriorMesh, and one for the exterior, say MyExteriorMesh. You can initialize the domain using the following expression Temperature = 20 [C] * inside()@REGION:MyInteriorMesh + 40 [C] * inside()@REGION:MyExteriorMesh Done!! If your interior mesh is made of multiple meshes, say MyInterior1, MyInterior2, you can then write it as Temperature = 20 [C] * (inside()@REGION:MyInterior1 + inside()@REGION:MyInterior2) + 40 [C] * inside()@REGION:MyExteriorMesh Hope the above helps, |
|
September 17, 2016, 04:48 |
|
#3 |
New Member
Nomen Ose
Join Date: Jun 2016
Location: Melbourne, Australia
Posts: 19
Rep Power: 10 |
Thanks for your reply.
|
|
September 17, 2016, 05:32 |
|
#4 |
New Member
Nomen Ose
Join Date: Jun 2016
Location: Melbourne, Australia
Posts: 19
Rep Power: 10 |
Hi Opaque thanks for your reply. Im still new at expressions in CFX. I applied the expression you recomemded i should try with the appropriate details but i receive this error anytime i apply the expression.
ERROR: Bad expression value 'Expression 1' detected in parameter 'Temperature' in object '/FLOW:Flow Analysis 1/INITIALISATION/INITIAL CONDITIONS/TEMPERATURE'. CEL error: Syntax error detected in the expression assigned to 'Expression 1'. Successfully read 12 characters: Temperature then error detected at: = 20 [C] * inside()@REGION:B280 + 20 [C] * inside()@REGION:B539 Details - Unexpected character. Do you know why this is happening? Regards, |
|
September 20, 2016, 02:58 |
|
#5 |
New Member
Nomen Ose
Join Date: Jun 2016
Location: Melbourne, Australia
Posts: 19
Rep Power: 10 |
Thanks for your help Opaque, I have figure it out
Regards, |
|
Tags |
cel expression, cfx, conditional computation, help me please, step function |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
Wrong fluctuation of pressure in transient simulation | caitao | OpenFOAM Running, Solving & CFD | 2 | March 5, 2015 22:33 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |