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/)
-   -   Velocity Cell Macros in 2D Axisymmetric Swirl (https://www.cfd-online.com/Forums/fluent-udf/224333-velocity-cell-macros-2d-axisymmetric-swirl.html)

c_023 February 14, 2020 07:16

Velocity Cell Macros in 2D Axisymmetric Swirl
 
Does anyone know how the velocity components can be accessed with a macro in 2D axisymmetric swirl? The UDF manual does not differ between 3D and 2D axisymmetric and only provides C_U(c,t), C_V(c,t), C_W(c,t). Are there specific macros for accessing Velocity components in axisymmetric and axisymmetric swirl domain?
I have a UDF that is using Velocity components to compute a source term, the UDF works well in 3D but is causing a SIGSEGV during the first Iteration in 2D axisymmetric swirl, which I believe stems from the UDF trying to Access a velocity component that is not existing.
Does anyone know what macros can be used in such a case?

Thanks in Advance and Kind regards!

vinerm February 14, 2020 10:37

Sigsegv
 
C_W exists for a case with 2D axisymmetric swirl. Check your code; it's possible that the error is due to some other reason.


All times are GMT -4. The time now is 05:11.