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

CEL For if condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2016, 02:04
Default CEL For if condition
  #1
Member
 
Dr Gurubasavaraju
Join Date: Dec 2014
Location: Bengaluru India
Posts: 78
Rep Power: 11
gbrajtm is on a distinguished road
The fluid is magnetic depended and it should be specified separately.
another case is the non Newtonian is separated by Newtonian.

I am using if(inside@piston == 1,a, 0.11 [kg m^-1 s^-1]) condition to differentiate Newtonian and non Newtonian region in material properties.
I wanted to add another region to this if condition, could help me how to
Attached Images
File Type: png Capture.PNG (34.3 KB, 13 views)
gbrajtm is offline   Reply With Quote

Old   January 10, 2016, 02:25
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Then you just add more if statements, of course.

But this method only works for very simple cases. You might want to consider the more general case where you model the magnetic field (at least its intensity) and make the material properties a function of the field.
ghorrocks is offline   Reply With Quote

Reply


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
The difference of cyclic boundry condition and mapped boundary condition caitao OpenFOAM Running, Solving & CFD 1 December 4, 2019 08:29
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 19:34
what "If" condition means in rebound brbbhatti OpenFOAM Programming & Development 0 August 12, 2014 10:18
Internal flow operating condition? kookguy FLUENT 2 June 26, 2014 01:15
The Boundary Condition about the Flat Plate boing Main CFD Forum 1 January 6, 2002 17:53


All times are GMT -4. The time now is 11:37.