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

UDF error: member reference base type 'void' is not a structure or union

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2024, 16:11
Default UDF error: member reference base type 'void' is not a structure or union
  #1
New Member
 
Niall
Join Date: Mar 2024
Posts: 4
Rep Power: 2
BlueLumos is on a distinguished road
Hi there,

I've run into a repeated error when attempting to compile UDF using Ansys 2023 R2 Fluent's built in compiler Clang. The code has been sourced from Sandia Gov and error message in Ansys when compiling is as the following:

uvdose_par.c(42,50): error: member reference base type 'void' is not a structure or union
par_fprintf_head(fp,"(%s %d)\n",thread->head->dpm_summary.sort_file_name,14);

It seems to indicate that line " par_fprintf_head(fp,"(%s %d)\n",thread->head->dpm_summary.sort_file_name,14);" of my code below has a problem. Here is part of the code of concern:

if (header)
{
if (NNULLP(thread))
par_fprintf_head(fp,"(%s %d)\n",thread->head->dpm_summary.sort_file_name,14);
else
par_fprintf_head(fp,"(%s %d)\n",plane->sort_file_name,14);

par_fprintf_head(fp,"(%10s %10s %10s %10s %10s %10s %10s"
" %10s %10s %10s %10s %10s %10s %10s %s)\n",
"X0","Y0","Z0",
"X","Y","Z","U","V","W","diameter","T","mass-flow",
"time","UV-Dosage","name");
}

I've had a talk with the individual who made this code, yet they have only mentioned to me that "The UDF was developed by Sandia based on the version of Fluent available in 2008. Ansys made some changes to their libraries when they changed HPC licensing. You’ll have to update the UDF to run on the current version of fluent".

I've tried and searched for weeks to solve this error yet have been unable to do so. My deadline to utilize this UDF is soon approaching, and was hoping if anybody is able to help. I would sincerely appreciate it if someone could attempt to help me solve this issue or even reply!

Thank you so much for your precious time.

Kind regards,
Niall
BlueLumos 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 04:28
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
rSF: p divergence in combustor (wt negative value) zonda OpenFOAM Pre-Processing 4 April 10, 2018 06:59
Modified pimpleFoam solver to MRFPimpleFoam solver hiuluom OpenFOAM Programming & Development 12 June 14, 2015 21:22
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35


All times are GMT -4. The time now is 07:41.