|
[Sponsors] |
UDF error: member reference base type 'void' is not a structure or union |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 17, 2024, 17:11 |
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 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 05:28 |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
rSF: p divergence in combustor (wt negative value) | zonda | OpenFOAM Pre-Processing | 4 | April 10, 2018 07:59 |
Modified pimpleFoam solver to MRFPimpleFoam solver | hiuluom | OpenFOAM Programming & Development | 12 | June 14, 2015 22:22 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |