CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   adding IAPWS thermophysical model undefined reference error (http://www.cfd-online.com/Forums/openfoam-programming-development/93670-adding-iapws-thermophysical-model-undefined-reference-error.html)

abcdef123 October 23, 2011 09:28

adding IAPWS thermophysical model undefined reference error
 
Hi, I am attempting to add a IAPWS thermophysicalModel, similarly as described in

http://www.cfd-online.com/Forums/ope...roperties.html

I've added IAPWSgas, IAPWSThermo, and IAPWSTransport and then finally added

makeBasicRhoThermo
(
hRhoThermo,
pureMixture,
IAPWSTransport,
IAPWSThermo,
IAPWSgas
);

to hRhoThermos.C, and then I rebuild libbasicThermophysicalModels.so with no problems. The issue is now when I try to build any heatTransfer solver (not just custom solvers) I get

libbasicThermophysicalModels.so: undefined reference to `Foam::pureMixture<Foam::IAPWSTransport<Foam::spec ieThermo<Foam::IAPWSThermo<Foam::IAPWSgas> > > >::typeName'

If I remove the makeBasicRhoThermo addition to hRhoThermos.C everything works fine but I can't use the new thermophysical model (since it's not defined).

Any advice?

Thanks.

abcdef123 October 23, 2011 10:07

problem solved
 
I figured this one out.. I had to add

makeBasicMixture
(
pureMixture,
IAPWSTransport,
IAPWSThermo,
IAPWSgas
);

to baseMixtures.C also.

Sorry for jumping the gun on the post. But maybe this will help someone else with a similar issue.


All times are GMT -4. The time now is 18:39.