FPDualReal in Fluid Properties UO #17061
-
|
Hi: Very basic question. Trying to code a UO for a fluid property that would use AD system. In the header file I have: class ConstantFluidProperties : public SinglePhaseFluidProperties and in the corresponding C file: FPDualReal I get a compile error: ConstantFluidProperties.h:23:23: error: 'rho_from_p_T' marked 'override' but does not override any member functions It seems like it should be overriding propfuncAD. Is there something obvious that I am doing wrong? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
|
Hi Joe I think it's because propfuncAD is using DualReal for its arguments and return types. Going to check now. Guillaume |
Beta Was this translation helpful? Give feedback.
-
|
Just want to thank everyone for the help. It is great that I can simply use the old style property fns and have them magically return the value with derivatives. Also, using the AD system as Chris did to get derivatives for properties that return them will save me time later. |
Beta Was this translation helpful? Give feedback.
Just want to thank everyone for the help. It is great that I can simply use the old style property fns and have them magically return the value with derivatives. Also, using the AD system as Chris did to get derivatives for properties that return them will save me time later.