# calculating force coefficents

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

 June 5, 2013, 05:24 calculating force coefficents #1 Member   Join Date: Sep 2012 Posts: 60 Rep Power: 4 Hi, could someone tell me how to calculate force coefficients for a moving object (mesh motion) ? I have experience in calculating forces and coefficients by using 'forces' object in controlDict. I want to know how to modify the vectors liftDir and DragDir based on the moving object (boundary). I want to make a script so that the calculation is automated. regards, achyutan

 June 7, 2013, 04:45 #2 Member   Join Date: Sep 2012 Posts: 60 Rep Power: 4 Hi, I am waiting for some response to know if anybody has had experience in modifying vectors liftDir, dragDir in controlDict during run time for moving objects. If reported unclear, i can explain in detail. But, i am disappointed that nobody turns up with a response. regards, achyutan

 June 13, 2013, 18:02 #3 Senior Member     Join Date: Mar 2013 Location: USA Posts: 120 Rep Power: 4 achyutan, If you can give more details about your case I can try to help. Why don't you calculate the forces with OpenFoam and calculate your force coefficients externally? Sincerely, Kilroy

 June 26, 2013, 07:15 #4 Member   Join Date: Sep 2012 Posts: 60 Rep Power: 4 Hi, First of all, thanks for the reply which was encouraging for me. I want to create a boundary condition for moving boundary which makes use of lift, drag forces/coefficients. so, i want to calculate lift, drag forces/coeffs at run-time and access them in my b.c for a moving wall. This implies that i need to change liftDir, dragDir according to the movement of solid boundary. calculating these force/coeffs externally and feeding them back into openfoam at every time step is like creating an interface btw openfoam and external script. i want to avoid it and that's precisely why i went for such an implicit b.c regards, achyutan

 June 26, 2013, 09:45 #5 Senior Member     Join Date: Mar 2013 Location: USA Posts: 120 Rep Power: 4 achyutan, I don't think OpenFoam have the capabilities that you need by default. The only way I can think of is to stop the simulation in each time step and edit the parameters that you want to edit. Then set startTime to latestTime and restart. Maybe you can accomplish what you have described by using an external python script or by modifying the OpenFoam source-code, but I have no experience on modifying OpenFoam code for the boundary conditions the way you want. Hope this helps, kilroy

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post be_inspired OpenFOAM Programming & Development 8 July 3, 2014 10:54 colopolo CFX 13 October 4, 2011 22:03 liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27 ste_lakey CFX 2 September 19, 2005 04:35 nabeel FLUENT 0 September 16, 2004 05:31

All times are GMT -4. The time now is 03:33.