CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Problem in adding ejector forces

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By annan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2019, 16:15
Post Problem in adding ejector forces
  #1
New Member
 
Akshay Jagdale
Join Date: Feb 2019
Posts: 2
Rep Power: 0
akshay777 is on a distinguished road
Hi there,
I've been working on Ansys Fluent for 4 months, I want to add ejector forces using UDF. I have successfully compiled the UDF including mass and moment of inertia, Now I want to add ejector forces using "if else" statement....but I'm unable to add the same....and I dont have much knowledge about C program.....please help...
akshay777 is offline   Reply With Quote

Old   February 28, 2019, 07:54
Default
  #2
Member
 
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 10
annan is on a distinguished road
Dear Akshay,
We would probably be able to help you if you post your UDF, and describe in detail what are the conditions you want to use for your "if" statement.
Regards,
Annan
akshay777 likes this.
annan is offline   Reply With Quote

Old   February 28, 2019, 15:08
Default Problem in adding ejector forces
  #3
New Member
 
Akshay Jagdale
Join Date: Feb 2019
Posts: 2
Rep Power: 0
akshay777 is on a distinguished road
I'm doing a project on store separation from wing of airplane ✈....I have added the mass and MOI of body but it gave me "Negative cell volume error" Everytime....here is the code I have used -

#include "udf.h"

DEFINE_SDOF_PROPERTIES(delta_missile, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 627.233;
prop[SDOF_IXX] = 324.7894;
prop[SDOF_IYY] = 8.4564;
prop[SDOF_IZZ] = 324.7894;

/* add injector forces, moments */
{
register real dfront = fabs (DT_CG (dt)[2] -
(0.179832*DT_THETA (dt)[1]));
register real dback = fabs (DT_CG (dt)[2] +
(0.329184*DT_THETA (dt)[1]));

if (dfront <= 0.100584)
{
prop[SDOF_LOAD_F_Z] = 10676.0;
prop[SDOF_LOAD_M_Y] = -1920.0;
}

if (dback <= 0.100584)
{
prop[SDOF_LOAD_F_Z] += 42703.0;
prop[SDOF_LOAD_M_Y] += 14057.0;
}
}

printf ("\ndelta_missile: updated 6DOF properties");
}



In this, I have not understood the adding ejector forces to the body.....one more....I'm I really need to define cell ID and thread pointer for adding the ejector forces....??thank you
akshay777 is offline   Reply With Quote

Reply

Tags
ansys 18.2, dynamic mesh, fluent, fluent - udf, udf and programming


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I can introduce my power heat (W) in chtMultiRegionFoam? aminem OpenFOAM Pre-Processing 32 August 29, 2019 03:23
chtMultiRegion not solving for velocity field obiscolly50 OpenFOAM Running, Solving & CFD 22 November 9, 2018 14:40
Mesh& steptime independant: conduction-convection problem Fati1 Main CFD Forum 1 October 28, 2018 14:52
[snappyHexMesh] Adding Layer Problem talatgokcer OpenFOAM Meshing & Mesh Conversion 0 December 4, 2015 02:23
problem in adding instructions to the solver Gary51075607 OpenFOAM Programming & Development 2 January 13, 2015 23:26


All times are GMT -4. The time now is 01:40.