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

DT_CG use

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2014, 06:09
Default DT_CG use
  #1
New Member
 
hannecart
Join Date: Jun 2014
Posts: 16
Rep Power: 11
Isitv2A is on a distinguished road
i want to know the position of CG for this i use in my udf the DT_CG(dt)


for( i=0 ; i<3; i++)

x_cg = DT_CG (dt) ;

where x_cg habe been declared as a real .

message error (" impossible de convertir de 'real *' en 'real' ")


can someone explain me how to use correctly DT_CG ?


thanks !
Isitv2A is offline   Reply With Quote

Old   June 26, 2014, 08:15
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
DT_CG is a vector (with 2 or 3 dimensions).
So you should also define x_cg as a vector.

real x_cg[ND_ND];

And then assign it using:

NV_V(x_cg,=,DT_CG(dt));

I think.
pakk is offline   Reply With Quote

Old   June 26, 2014, 10:07
Default
  #3
New Member
 
hannecart
Join Date: Jun 2014
Posts: 16
Rep Power: 11
Isitv2A is on a distinguished road
ok i will try


at first i declared x-cg like that " real x_cg[3) " to have a vector 3dim

than i use a loop to define x-cg[i]=Dt-cg(dt) [i]
Isitv2A is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 09:50.