# How can I fix a local coordinate system to the inlet

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

 May 4, 2014, 10:07 How can I fix a local coordinate system to the inlet #1 New Member   Join Date: Mar 2014 Location: Switzerland Posts: 10 Rep Power: 12 Dear all, I am working with a time- and spatially dependent velocity inlet profile together with a time-dependent geometry. The velocity profile is defined in a local coordinate system which lies on the inlet boundary surface. The time-dependent geometry is realized with the morphing feature. So far, everything works fine. I just have the problem, that as my geometry moves and deforms in time, the inlet part also moves but the local inlet coordinate system stays at its origin. As a consequence, the velocity profile does not stay at the inlet boundary and therefore after a certain time, no velocity is defined at the inlet anymore. Is there a way to attach the local coordinate system to the inlet surface in a way that it will move together with the surface instead of staying at its origin? Did anyone ever found a way to solve such an issue? A possible solution would be to morph the geometry in a way that the inlet always stays at its position and only the rest of the geometry moves. But this unfortunately can not be easily realized, as I only have the displacement for the surface and not the inlet... Thanks for any suggestions/comments in advance Cheers

 May 6, 2014, 09:31 #2 Senior Member   Join Date: Nov 2010 Location: USA Posts: 1,232 Rep Power: 24 Is the inlet moving physical? Can you change your BCs to a location such that they don't move?

 May 7, 2014, 06:41 #3 Senior Member   Ping Join Date: Mar 2009 Posts: 556 Rep Power: 20 you can define point probes and enable the follow motion property so that they move with your mesh since they will follow any mesh motion but be wary of remeshing since the cell the points are locked to will disappear so if you define some near your inlet boundary you will have some useful values like normal or corner locations using a few reports of position of the points then this information can be used in a macro which runs the case and every few time steps or even every time step update the coordinate system values - might need to do a bit of maths getting there like cross products but this is easy in a macro

 May 8, 2014, 05:46 #4 Senior Member   Ping Join Date: Mar 2009 Posts: 556 Rep Power: 20 a maybe better idea is to isolate one central cell face on your inlet boundary as a separate boundary but with the same settings as the the rest of the boundary then do reports on just that boundary for position and normal and use this then is a macro to alter the coordinate system properties and thinking about it some more if the boundary is planar the same could be done on the whole boundary depending on the report you choose for getting the position eg area weighted average position maybe