|
[Sponsors] |
November 3, 2014, 04:36 |
9.04 Creating Automated Coordynate Systems
|
#1 |
New Member
Christian
Join Date: Nov 2014
Posts: 3
Rep Power: 12 |
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 |
|
November 3, 2014, 08:08 |
|
#2 |
Member
kris
Join Date: May 2014
Posts: 73
Rep Power: 12 |
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. |
|
November 3, 2014, 08:35 |
|
#3 |
New Member
Christian
Join Date: Nov 2014
Posts: 3
Rep Power: 12 |
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!!!!! |
|
November 3, 2014, 09:29 |
|
#4 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 539
Rep Power: 20 |
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 |
|
November 4, 2014, 06:29 |
|
#5 |
New Member
Christian
Join Date: Nov 2014
Posts: 3
Rep Power: 12 |
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 |
|
Tags |
9.04, coordinate system, coordinate transform, java, macro |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
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 18:51 |
Problems with Meshing: Collapsed Cells | Emmanuel Resch | Siemens | 1 | July 30, 2007 04:02 |