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

Can't read data from file to a UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2021, 13:39
Question Can't read data from file to a UDF
  #1
New Member
 
Emanuel Camacho
Join Date: Oct 2016
Posts: 13
Rep Power: 9
Emanuel Camacho is on a distinguished road
Good day,

I am trying to read some data from the forces report file that Fluent generates into a UDF but all values appear 0 in Fluent.

I attached 3 figures to illustrate the data file (no 1), the UDF code (no 2), and the message observed in Fluent (no3).

What can I be doing wrong? Do I need to add something else to the code since I am using file-related functions (fscanf and such)?
Attached Images
File Type: jpg 1.jpg (78.7 KB, 6 views)
File Type: jpg 2.jpg (25.3 KB, 5 views)
File Type: jpg 3.jpg (117.3 KB, 5 views)
Emanuel Camacho is offline   Reply With Quote

Old   October 1, 2021, 12:55
Default
  #2
New Member
 
Emanuel Camacho
Join Date: Oct 2016
Posts: 13
Rep Power: 9
Emanuel Camacho is on a distinguished road
Problem solved under the FLUENT forum.

Link: Can't read data from file to a UDF
Emanuel Camacho 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
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 7 October 4, 2022 13:57
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52


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