116 |
/** |
/** |
117 |
'heatex_prepare' just gets the stream details and the number of slices for |
'heatex_prepare' just gets the stream details and the number of slices for |
118 |
internal calculation, and checks that the stream names are valid in FPROPS. |
internal calculation, and checks that the stream names are valid in FPROPS. |
119 |
|
|
120 |
|
TODO FIXME allow general support for specification of components, incl type,source. |
121 |
*/ |
*/ |
122 |
int heatex_prepare(struct BBoxInterp *bbox, |
int heatex_prepare(struct BBoxInterp *bbox, |
123 |
struct Instance *data, |
struct Instance *data, |
169 |
goto fail; |
goto fail; |
170 |
} |
} |
171 |
|
|
172 |
hxd->comp[i] = fprops_fluid(comp[i], NULL); |
hxd->comp[i] = fprops_fluid(comp[i], NULL,NULL); |
173 |
if(hxd->comp[i] == NULL){ |
if(hxd->comp[i] == NULL){ |
174 |
ERROR_REPORTER_HERE(ASC_USER_ERROR,"Heat exchanger %s name '%s' not recognised. Check list of supported species.",SCP(heatex_symbols[i]),comp[i]); |
ERROR_REPORTER_HERE(ASC_USER_ERROR,"Heat exchanger %s name '%s' not recognised. Check list of supported species.",SCP(heatex_symbols[i]),comp[i]); |
175 |
goto fail; |
goto fail; |