CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

9.04 Creating Automated Coordynate Systems

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 3, 2014, 04:36
Exclamation 9.04 Creating Automated Coordynate Systems
  #1
New Member
 
Christian
Join Date: Nov 2014
Posts: 3
Rep Power: 4
Chrismaster is on a distinguished road
Hello Everybody,

I got a problem.
I want to create automated coordynate systems on a cyrcled inlet / outlet Plane, with Z- Direction within the flow.
The Inlet/Outlet is, as i want to automate it, not always on the same place.
It changes by angle, diameter, and length of the following tube.

Is it possible as it always is a cyrcle, to always get the centroid of the inlet/outlet, to set the csys on this place with a normal to the plane?
The Boundary also, always has the same name. So i might could automate it by using java?

Looking forward to hearing from you!

Best regards,

Christian
Chrismaster is offline   Reply With Quote

Old   November 3, 2014, 08:08
Default
  #2
Member
 
kris
Join Date: May 2014
Posts: 73
Rep Power: 4
kguntur is on a distinguished road
Hi,
If you know how the co-ordinate system should move, then you can create a co-ordinate system and a motion. Then set it as the managed co-ordinate system in the motion. Then the co-ordinate system moves as per the defined motion.

Hope this helps.
kguntur is offline   Reply With Quote

Old   November 3, 2014, 08:35
Default
  #3
New Member
 
Christian
Join Date: Nov 2014
Posts: 3
Rep Power: 4
Chrismaster is on a distinguished road
I can get the number of Vertices on this plane.

--> surfaceMeshWidgetSelectController.getNumSelectedVe rtices();

Is there a possibility, to get three points of them, so i can create a c-sys out of this three points/vectors?

would be great, if sb. would know. :-)

Thanks alot!!!!!
Chrismaster is offline   Reply With Quote

Old   November 3, 2014, 09:29
Default
  #4
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 197
Rep Power: 10
JBeilke is on a distinguished road
Just create 3 "Surface Average Reports" for your inlet with the FieldFunction Centroid[x,y,z] to get the position of the center.

For the surface normal just look at:

http://www.cfd-online.com/Forums/sta...al-vector.html
JBeilke is offline   Reply With Quote

Old   November 4, 2014, 06:29
Default
  #5
New Member
 
Christian
Join Date: Nov 2014
Posts: 3
Rep Power: 4
Chrismaster is on a distinguished road
Thanks for your Answer, I now get the position of the Inlet.
But there is one further problem.

The Inlet gets an extrusion, to reduce reversed flow. So the coordinates, i get are on the extrusion of the inlet. is there a posibillity, to get the coordinates of the "original" inlet?
And further... How do i get the Value of $$Area? Is it like $$Area(b_inlet_1) ??

I was thinking about moving the csys withhin the direction of the normal Vector. Or is there an easier possibility?

Best regards,

Christian
Chrismaster is offline   Reply With Quote

Reply

Tags
9.04, coordinate system, coordinate transform, java, macro

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20
Optimizing the solution of tridiagonal linear systems CCKM Main CFD Forum 14 March 14, 2012 08:40
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Problems with Meshing: Collapsed Cells Emmanuel Resch CD-adapco 1 July 30, 2007 03:02


All times are GMT -4. The time now is 17:25.