Ansys Fluent Unresovled error in UDF

1.2k Views Asked by At

I am getting:

error LNK2019: unresolved external symbol _imp_RP_Get_Integer referenced in function _update_mc

While using:

physical_dt = RP_Get_Integer("physical-time-step");

What is wrong?

1

There are 1 best solutions below

0
On

The problem is that you are trying to use the wrong RP variable macro. So, to get the physical time step, you can use either:
physical_dt = RP_Get_Real("physical-time-step");
or the solver Macro:

physical_dt = CURRENT_TIMESTEP;

For more information, refer to Ansys Fluent UDF Manual .