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

Changing an Option selection using CEL.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 1, 2019, 06:59
Default Changing an Option selection using CEL.
  #1
Senior Member
 
AH
Join Date: Apr 2014
Posts: 287
Rep Power: 0
visitor is on a distinguished road
Can anyone help please?
Looking for away to change an Option through CEL in CFX.
Example from
Option = Adiabatic
to
Option = Non Adiabatic
I do know the nested IF statement in creating an IF and ELSEIF conditions. However how do i create a switch between these options? Say example if the temperature =< 400 K, then Adiabatic elseif Non Adiabatic.

Thanks in advance.
visitor is offline   Reply With Quote

Old   January 2, 2019, 06:22
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Rather than switch between non-adiabatic and adiabatic conditions, why not just define it as a non-adiabatic condition (with a heat flux I presume), and then for the times it is adiabatic just define the heat flux to be zero. Then the if statement is a simple numerical one.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 2, 2019, 07:42
Default
  #3
Senior Member
 
AH
Join Date: Apr 2014
Posts: 287
Rep Power: 0
visitor is on a distinguished road
Thanks for your reply.

Need to change automatically from within CEL. With an if condition statement. Have tried it, but didn't work.

Working on a student version, if it makes a difference.
visitor is offline   Reply With Quote

Old   January 2, 2019, 23:18
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Student version of CFX/ANSYS is the same as the full commercial version, just the number of nodes in the mesh is limited and not all the physics is available.

You cannot change the boundary condition type with a CEL if statement. When you change boundary condition type you need to run it through CFX-Pre again to update things, you cannot do it with a CCL update alone.

Your options are:
* Use the method I described in my previous post
* Stop the simulation, and restart using a new simulation with the boundary condition updated to the new type and use the old simulation as an initial condition.

That's about it. You cannot change boundary condition type inside a run and continue the run.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 3, 2019, 09:54
Thumbs up
  #5
Senior Member
 
AH
Join Date: Apr 2014
Posts: 287
Rep Power: 0
visitor is on a distinguished road
Thanks for your reply Gohrrocks.

May be i will look into Fluent, just incase there is away.

Thanks
visitor is offline   Reply With Quote

Old   January 4, 2019, 02:49
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Why? Stopping and restarting is simple, easy and can be automated if necessary. Is that not acceptable?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 4, 2019, 07:29
Default
  #7
Senior Member
 
AH
Join Date: Apr 2014
Posts: 287
Rep Power: 0
visitor is on a distinguished road
Yes definitely, can be done. Just was looking for an automated way. Something like what a UDF does in Fluent. Will explore a way with Fluent, so far found nothing in user manual.

Thanks.
visitor is offline   Reply With Quote

Old   January 4, 2019, 12:29
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
This is supported as a multi-configuration setup.

First analysis uses adiabatic as the Option, and the second analysis uses Flux In as the option.

The switching between the options is automatically taken care of once the trigger (logical) is satisfied.
Opaque is offline   Reply With Quote

Old   April 1, 2019, 07:34
Default
  #9
Senior Member
 
AH
Join Date: Apr 2014
Posts: 287
Rep Power: 0
visitor is on a distinguished road
Thanks for your replies.

Was hoping to automate this to get more control. I think even fluent won't make it with a udf.

Thanks again.
visitor is offline   Reply With Quote

Reply

Tags
cel, conditions, option


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 18:38
Problem with an old Simulation FrankW CFX 3 February 8, 2016 05:28
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 18:00
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 12:19


All times are GMT -4. The time now is 16:45.