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

Step CEL expression to specify initial temperature of a geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2016, 03:02
Question 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
Peta247 is on a distinguished road
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,
Attached Images
File Type: jpg Top view.jpg (71.4 KB, 22 views)
File Type: jpg OUTSIDE.jpg (98.2 KB, 18 views)
File Type: png BUS mesh details.PNG (68.1 KB, 16 views)
File Type: png all geometries.PNG (71.6 KB, 16 views)
Peta247 is offline   Reply With Quote

Old   September 16, 2016, 15:31
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,873
Rep Power: 33
Opaque will become famous soon enough
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,
Opaque is offline   Reply With Quote

Old   September 17, 2016, 04:48
Smile
  #3
New Member
 
Nomen Ose
Join Date: Jun 2016
Location: Melbourne, Australia
Posts: 19
Rep Power: 10
Peta247 is on a distinguished road
Thanks for your reply.
Peta247 is offline   Reply With Quote

Old   September 17, 2016, 05:32
Smile
  #4
New Member
 
Nomen Ose
Join Date: Jun 2016
Location: Melbourne, Australia
Posts: 19
Rep Power: 10
Peta247 is on a distinguished road
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,
Peta247 is offline   Reply With Quote

Old   September 20, 2016, 02:58
Default
  #5
New Member
 
Nomen Ose
Join Date: Jun 2016
Location: Melbourne, Australia
Posts: 19
Rep Power: 10
Peta247 is on a distinguished road
Thanks for your help Opaque, I have figure it out

Regards,
Peta247 is offline   Reply With Quote

Reply

Tags
cel expression, cfx, conditional computation, help me please, step function


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
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


All times are GMT -4. The time now is 17:10.