# Motion of a Region based on Java Script

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

 July 15, 2019, 14:33 Attach a Region to a Coordinate System for Motion #1 New Member   Jakob Fischer Join Date: Nov 2014 Location: Stuttgart, Germany Posts: 15 Rep Power: 7 Hi Folks, back at it again, I'm facing a problem I really kinda lost my patience on To my setup: I want to move an overset region along a curve given by a .csv file and to do so I set up a Java script which moves two coordinate systems along said curve. To achieve a certain alignment I created another coordinate system, which points from the first to the second coordinate system, all of them moving together as a consequence. Now comes the tricky part (and that after dealing with the java script...) I want to move the overset region with the third coordinate system, meaning position and orientation. I was able to attach a plane as a derived part to the moving coordinate system, which works like a charme. But it seems like an impossible task to do so for the region, although I'm sure this has to be possible.. I'd be more than happy to hear your thoughts on this and maybe we can work this one out together. Any questions to my setup are welcome and will be answered asap Best wishes, Jack Last edited by JackFischer; July 16, 2019 at 01:31. Reason: Unclear Title

 July 17, 2019, 07:06 #2 Senior Member   Sebastian Engel Join Date: Jun 2011 Location: Germany Posts: 430 Rep Power: 16 Hi Jakob, are you aware of the so called user-defined vertex motion? You can find information in the manual in the branch: Simulating Physics > Space, Time, and Motion > Modeling Motion > Working with User-Defined Vertex Motion > Setting the Quantity for User-Defined Motion It allows you to define a motion based on a number of methods, such as coordinate system changes, displacements, or grid velocity. For example, if you can construct the equation describing your motion (including rotation) your could build a vector user-defined field function of it. This field function could then directly be used by starccm for the mesh motion. Regards, Sebastian

 Tags coordinate system, java, overset, region