|
[Sponsors] |
'bad suffix on number' when building udf function |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 9, 2020, 10:18 |
'bad suffix on number' when building udf function
|
#1 |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
Hi everyone,
I am trying to make an UDF function that can change timestep in unsteady simulation with Fluent. Howeve, when I compile the UDF function with fluent, it show error like that: ..\..\src\timeStep.c(29): error C2059: syntax error: 'bad suffix on number' The UDF file is as below: #include "udf.h" It is appreciated if someone could explain to me the way to deal with this stuck. I thank you very much, |
|
January 9, 2020, 11:42 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Code:
if(flowTime < 1.0d-5) Don't you mean 1.0e-5? |
|
January 9, 2020, 22:45 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
what fluent version do you use?
__________________
best regards ****************************** press LIKE if this message was helpful |
|
January 10, 2020, 01:51 |
|
#4 |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
||
January 10, 2020, 01:54 |
|
#5 |
Senior Member
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12 |
||
January 10, 2020, 06:59 |
|
#6 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
v19.2 is parallel by default
you should organize your UDF to work in parallel Code:
flowTime = RP_Get_Real("flow-time"); timeStep = RP_Get_Real("physical-time-step"); Ansys Fluent Customization manual | Parallel Considerations
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
parallel run OpenFoam | Srinath Reddy | OpenFOAM Running, Solving & CFD | 13 | February 27, 2019 10:15 |
[foam-extend.org] Error compiling OpenFOAM-1.6-ext | Canesin | OpenFOAM Installation | 137 | January 20, 2016 15:56 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |