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

Error in condition CEL function

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2018, 05:21
Default Error in condition CEL function
  #1
Senior Member
 
karachun's Avatar
 
Join Date: Nov 2015
Posts: 244
Rep Power: 11
karachun is on a distinguished road
Hello!
I make incompressible analysis and have negative values of Pressure even with included operating pressure value. It will be cavitation in model irl. At first assumption I decide to set negative pressure to zero to obtain lift force.
I create two Expressions for Y force at surface, named "wall":
Code:
P1 = if ((Total Pressure + 1 [atm]) < 0 [Pa], 0 [Pa], Total Pressure + 1 [atm]) 
Liftforce_y = areaInt_y(P1) @ wall + areaInt_y(Wall Shear) @ wall
Is I`m right or doing something wrong? I get no errors, there are resultant force but maybe there are some methodological errors?
P.S. the theme title is not valid - I have some problems with CEL expression - but solved it when I write this post)
karachun is offline   Reply With Quote

Old   June 22, 2018, 06:49
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This will mean your calculation of the forces on the body will not include the negative pressure regions, but the solver will still include the negative pressure regions. This means the force on the body will not be consistent with the simulation. This does not sound like a good approach to me. I would recommend you fix the problem at its source rather than a hack like this.

If you really do have significant regions of negative pressure then you need a cavitation model. If these negative pressures are not real then you better fix your simulation to fix it.

Also: You integrate pressure over a surface to get force, not total pressure.
karachun likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 22, 2018, 07:25
Default
  #3
Senior Member
 
karachun's Avatar
 
Join Date: Nov 2015
Posts: 244
Rep Power: 11
karachun is on a distinguished road
Thanks!
I have pressure range from +1,5 to - 3 MPa. The problem is flow in wery thin gap - in journal bearing. The flow is laminar. It will require expensive computational effort to resolve cavitation - mesh will become too large.
Also I dont need wery precise results.
karachun is offline   Reply With Quote

Old   June 22, 2018, 07:29
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,705
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
It is your choice what to do, but that sounds like a pretty big negative pressure so I suspect cavitation will have a big effect. If that is the case then you ignore cavitation at your peril.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 23:07.