|
[Sponsors] |
UDF error:member reference base type 'void' is not a structure or union |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Eddy
Join Date: Feb 2023
Posts: 1
Rep Power: 0 ![]() |
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 |
|
![]() |
![]() |
![]() |
Tags |
fluent - udf - parallel, uv dosage |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |