CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

adding IAPWS thermophysical model undefined reference error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 23, 2011, 09:28
Default adding IAPWS thermophysical model undefined reference error
  #1
New Member
 
abcdef123
Join Date: Dec 2009
Posts: 17
Rep Power: 7
abcdef123 is on a distinguished road
Hi, I am attempting to add a IAPWS thermophysicalModel, similarly as described in

IAPWSIF97 water properties

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:ureMixture<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 is offline   Reply With Quote

Old   October 23, 2011, 10:07
Default problem solved
  #2
New Member
 
abcdef123
Join Date: Dec 2009
Posts: 17
Rep Power: 7
abcdef123 is on a distinguished road
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.
abcdef123 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
Building OF 1.6 - CentOS 4.x Pytthon OpenFOAM 1 February 2, 2010 12:05


All times are GMT -4. The time now is 17:51.