CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   SDOF_Overwrite_Motion & SDOF_Get_Motion (https://www.cfd-online.com/Forums/fluent-udf/228246-sdof_overwrite_motion-sdof_get_motion.html)

aCamb27 June 24, 2020 11:07

SDOF_Overwrite_Motion & SDOF_Get_Motion
 
I found an example UDF in the Ansys Fluent Manual that contains the functions SDOF_Overwrite_Motion and SDOF_Get_Motion, but can't seem to find any additional documentation about them. Can someone explain how these functions work, what arguments they require, and what exactly they do?


Link to Ansys Fluent Manual: http://www.pmt.usp.br/academic/marto...F%20Manual.pdf (go to page 203-205)


Also, below is the section of the UDF that contains these functions:
https://studentcommunity.ansys.com/c...&upscale=false


Thanks for the help!


aCamb27 June 24, 2020 13:09

A quick update. Looking through the Fluent src directory, in six_dof.h, both these functions are named, with the arguments of both being (dt, real[3], real[3], real[3]). From the sample UDF, it seems like the three arrays correlate to velocity, omega, and theta. There are no more details though about how the functions work or what they exactly do. Anyone have any sense?

vinerm June 24, 2020 16:04

SDOF Macros
 
Both the macros have self explanatory names and the comments clarify those explanations.

Get_Motion fills in the values of translational velocity, rotational velocity, and angular orientation in the three vectors. It is essentially same information that is displayed in Rigid Body Dynamic Mesh object, if you open Dynamic Mesh object creation window.

Overwrite replaces those values with user provided values.


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