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   February 28, 2023, 01:40
Default UDF error:member reference base type 'void' is not a structure or union
  #1
New Member
 
Eddy
Join Date: Feb 2023
Posts: 1
Rep Power: 0
Eddybj is on a distinguished road
I run into an error message when trying to compile UDF using Ansys 2022 R1 Fluent's built in compiler Clang. The error message is as follows,

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 am a bit puzzled and have no clues as to what could be wrong as the code was actually written in 2008 and was compiled successfully at the time. I wonder if anyone could shed me some light on this error and suggest a way to fix it. Many thanks.

Eddy
Eddybj is offline   Reply With Quote

Old   March 17, 2024, 12:09
Default
  #2
New Member
 
Niall
Join Date: Mar 2024
Posts: 4
Rep Power: 2
BlueLumos is on a distinguished road
Hi Eddy,

I came across your post from a year ago concerning the UV Irradiation code from Sandia, which I'm also utilizing. Despite addressing several warnings, I've encountered the same persisting error you mentioned in your February 2023 forum post. Unfortunately, it seems your query went unanswered. I'm reaching out in the hopes that if you've made any progress since then, you might be able to assist me in resolving this issue. My project deadline is fast approaching, so your help would be immensely valuable. Thank you in advance for any assistance you can provide.

Best Regards,
Niall
BlueLumos is offline   Reply With Quote

Reply

Tags
fluent - udf - parallel, uv dosage


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
Simulation of a chimney with heat in open atmosphere Jurado OpenFOAM Running, Solving & CFD 9 December 18, 2020 07:35
Modified pimpleFoam solver to MRFPimpleFoam solver hiuluom OpenFOAM Programming & Development 12 June 14, 2015 21:22
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16
singularity? mihaipruna OpenFOAM Running, Solving & CFD 5 April 24, 2012 17:18


All times are GMT -4. The time now is 23:08.