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

locator-based function

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2016, 12:22
Default locator-based function
  #1
New Member
 
armin najarian
Join Date: Aug 2015
Posts: 14
Rep Power: 11
armin najarian is on a distinguished road
Hello.
i am new in cfx.
i need a locator-based function in cfx.
in expressions there is a locator-based function of force: [force()@...].
but i want this function: position()@
what should i do?
thanks dears.
armin najarian is offline   Reply With Quote

Old   May 31, 2016, 12:31
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,860
Rep Power: 33
Opaque will become famous soon enough
Perhaps you should rephrase your needs differently. Others in the forum may have face similar challenges and they were able to resolve it somehow.

It seems you have already concluded what you need though it may be possible (if properly described) to do with the existing functionality.

What do you think ?
armin najarian likes this.
Opaque is offline   Reply With Quote

Old   May 31, 2016, 16:11
Default
  #3
New Member
 
armin najarian
Join Date: Aug 2015
Posts: 14
Rep Power: 11
armin najarian is on a distinguished road
thanks for your answer.
when i wrote [position_x()@rigidbody], cfx gave me an error.
i think i should write a user function or user subroutine to achive my goal.
but i dont know exactly how to do it.
armin najarian is offline   Reply With Quote

Old   May 31, 2016, 21:12
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,860
Rep Power: 33
Opaque will become famous soon enough
Once again you are not providing information of what you need, but how you approached and attempting others read between the lines.

I will take a good guess here: you seem to need the X,Y or Z location of the center of mass of a rigid body in your setup. To do so, a good advice is that you should read the CFX Reference Guide/Chapter 15 Functions in ANSYS CFX.

In there, you can look at the functions provided to access rigid body information, say "rbstate (<rbvar> <Axis>) @ <Location>". I let you read through the list of what "rbvar"s are available and see if any is helpful to you..

Hope the above helps,
Opaque is offline   Reply With Quote

Old   June 1, 2016, 02:19
Default
  #5
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 13
-Maxim- is on a distinguished road
http://xyproblem.info/

In Post, you can also set points and use the probe(variable)@point function.
If you want to evaluate variables in certain points during the run via solver manager, I have described a way recently using source points in Pre. The search function in this forum will find that post.
-Maxim- is offline   Reply With Quote

Old   June 1, 2016, 06:35
Default
  #6
New Member
 
armin najarian
Join Date: Aug 2015
Posts: 14
Rep Power: 11
armin najarian is on a distinguished road
thanks for your answering
in fact i have a boat that it has 6 degree of freedom and i want to give it an external force (instead of modeling its propeller)
so i need to write an expression for the external force and as i said my problem is 6dof.
at first i wanted to define a coordinate that moves with the rigid body. but i could not define coordinate like that.
so how should i give the boat an external force that always be in the direction of the longitudinal axis of the boat?

Last edited by armin najarian; June 5, 2016 at 02:42.
armin najarian is offline   Reply With Quote

Old   June 1, 2016, 06:37
Default
  #7
New Member
 
armin najarian
Join Date: Aug 2015
Posts: 14
Rep Power: 11
armin najarian is on a distinguished road
thank u so much.
i want it in cfx pre.
i check this by using source points.
armin najarian is offline   Reply With Quote

Reply

Tags
function of position

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Lets talk about relaxation factor optimization chriss85 OpenFOAM Running, Solving & CFD 35 June 21, 2019 09:54
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 06:47.