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

Is this expression correct?

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By singer1812
  • 1 Post By rasool motamedi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2015, 19:10
Lightbulb Is this expression correct?
  #1
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Hello.
This is a buoy in a water tank.

i want to find the rotation angle of buoy in cfx-post
i use this expression to find the angle

(probe(Total Mesh Displacement Y)@Point 2 -probe(Total Mesh Displacement Y)@Point 1 )/(1[m]+probe(Total Mesh Displacement X)@Point 2 -probe(Total Mesh Displacement X)@Point 1 )

Point 1 is middle point of the right edge of buoy and point 2 is the middle point of the left edge of buoy.
1[m] is width of buoy
after this i make a transient chart in location point 3 (0,0,0). x axis is time and y axis is the variable of this expression.
is this correct?
can you help me to find the correct way?
divoone1985 is offline   Reply With Quote

Old   July 15, 2015, 20:28
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
Why not use the built in angle variable, contained in variable "rbstate"?
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   July 17, 2015, 06:02
Lightbulb
  #3
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Why not use the built in angle variable, contained in variable "rbstate"?
I didn't hear about it.
what's that?
how can i use it?
divoone1985 is offline   Reply With Quote

Old   July 17, 2015, 07:34
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
The CFX documentation is your friend. Have a look in the reference manual.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   July 20, 2015, 04:12
Lightbulb
  #5
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The CFX documentation is your friend. Have a look in the reference manual.
Is there any taturial or example about it?
divoone1985 is offline   Reply With Quote

Old   July 20, 2015, 07:36
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
Have a look at the floating buoy simulation in the CFX tutorials. There are probably more on the ANSYS Customer web page.
divoone1985 likes this.
ghorrocks is offline   Reply With Quote

Old   July 22, 2015, 12:38
Lightbulb
  #7
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Have a look at the floating buoy simulation in the CFX tutorials. There are probably more on the ANSYS Customer web page.
thank you.
I have 2 questions.
1. Why this expression don't work in cfx-post?
2. why my results from this expression and the expression I said above are different?
divoone1985 is offline   Reply With Quote

Old   July 22, 2015, 13:28
Default
  #8
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
rbstate isnt passed to the results file, so Post doesnt have access to that. You would have to monitor those while the run is in solution.

rbstate returns angle in radians of rotation around global axis.

I think you need an atan in your expression and why are you adding 1[m] to the X? I dont think that is needed. In addition, you will have issues when your denominator is 0 (X displacement of both points is same).
divoone1985 likes this.
singer1812 is offline   Reply With Quote

Old   July 22, 2015, 16:55
Default
  #9
Member
 
rasool
Join Date: Apr 2013
Posts: 41
Rep Power: 13
rasool motamedi is on a distinguished road
i think
it is true.
atan( (probe(Total Mesh Displacement Y)@Point 1)/(1[m]-probe(Total Mesh Displacement X)@Point 1 ))
divoone1985 likes this.
rasool motamedi is offline   Reply With Quote

Old   July 24, 2015, 18:24
Default
  #10
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by singer1812 View Post
rbstate isnt passed to the results file, so Post doesnt have access to that. You would have to monitor those while the run is in solution.

rbstate returns angle in radians of rotation around global axis.

I think you need an atan in your expression and why are you adding 1[m] to the X? I dont think that is needed. In addition, you will have issues when your denominator is 0 (X displacement of both points is same).
You are right.
I forget to write atan.
But 1[m] is the width of buoy.
because two points have 1[m] distance.
and with this 1[m] in expression , the issue you noticed doesn't exist anymore.
divoone1985 is offline   Reply With Quote

Old   July 24, 2015, 18:26
Default
  #11
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
anyone Knows how I can change the charts units from radian to degree in solver?
divoone1985 is offline   Reply With Quote

Old   July 25, 2015, 01:59
Default
  #12
Member
 
rasool
Join Date: Apr 2013
Posts: 41
Rep Power: 13
rasool motamedi is on a distinguished road
sorry divoone
atan( (probe(Total Mesh Displacement Y)@Point 1)/(0.5[m]-probe(Total Mesh Displacement X)@Point 1 ))
rasool motamedi is offline   Reply With Quote

Old   July 25, 2015, 14:26
Lightbulb
  #13
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by rasool motamedi View Post
sorry divoone
atan( (probe(Total Mesh Displacement Y)@Point 1)/(0.5[m]-probe(Total Mesh Displacement X)@Point 1 ))
Thanks. But both expressions you said have different results with solver results (rigid body euler angle)
divoone1985 is offline   Reply With Quote

Old   July 26, 2015, 03:11
Default
  #14
Member
 
rasool
Join Date: Apr 2013
Posts: 41
Rep Power: 13
rasool motamedi is on a distinguished road
Quote:
Originally Posted by divoone1985 View Post
Thanks. But both expressions you said have different results with solver results (rigid body euler angle)
this is right
0.5[m] is true
atan( (probe(Total Mesh Displacement Y)@Point 1)/(0.5[m]-probe(Total Mesh Displacement X)@Point 1 ))
rasool motamedi is offline   Reply With Quote

Old   July 26, 2015, 15:35
Default
  #15
Member
 
M S
Join Date: Feb 2015
Posts: 30
Rep Power: 11
divoone1985 is on a distinguished road
Quote:
Originally Posted by rasool motamedi View Post
this is right
0.5[m] is true
atan( (probe(Total Mesh Displacement Y)@Point 1)/(0.5[m]-probe(Total Mesh Displacement X)@Point 1 ))
But results of this expression differ from results of rigid body euler angle in solver environment.
Do you Know why?
which one is correct?
divoone1985 is offline   Reply With Quote

Reply

Tags
cfx, water tank


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
Is my Dynamic mesh setup correct? cfd seeker FLUENT 16 October 30, 2020 07:16
Error reading profile data in expression in cfx post banu CFX 4 March 27, 2015 10:03
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 07:16
How to correct the expression given below baburaj Main CFD Forum 1 March 13, 2012 08:32


All times are GMT -4. The time now is 15:57.