autoPtr<lcsEnthalpySourcePluginFunction::dimScalarField>
coalCloudEnthalpySourcePluginFunction::internalEvaluate()
{
    // pick up the first fitting class
    tryCall(dimScalarField,constThermoCoalCloud,reactingMultiphaseCloud,Sh());
    tryCall(dimScalarField,thermoCoalCloud,reactingMultiphaseCloud,Sh());
    tryCall(dimScalarField,icoPoly8ThermoCoalCloud,reactingMultiphaseCloud,Sh());

    return lcsEnthalpySourcePluginFunction::internalEvaluate();
}
autoPtr<volScalarField> coalCloudMassFractionPluginFunction::internalEvaluate()
{
    // pick up the first fitting class
#ifdef FOAM_REACTINGCLOUD_TEMPLATED
    tryCall(volScalarField,constThermoCoalCloud,reactingMultiphaseCloud,alpha());
    tryCall(volScalarField,thermoCoalCloud,reactingMultiphaseCloud,alpha());
    tryCall(volScalarField,icoPoly8ThermoCoalCloud,reactingMultiphaseCloud,alpha());
#else
    tryCall(volScalarField,coalCloud,reactingMultiphaseCloud,alpha());
#endif

    return lcsMassFractionPluginFunction::internalEvaluate();
}
autoPtr<lcsEnthalpySourcePluginFunction::dimScalarField>
coalCloudEnthalpySourcePluginFunction::internalEvaluate()
{
    // pick up the first fitting class
#ifdef FOAM_REACTINGCLOUD_TEMPLATED
    tryCall(dimScalarField,constThermoCoalCloud,reactingMultiphaseCloud,Sh());
    tryCall(dimScalarField,thermoCoalCloud,reactingMultiphaseCloud,Sh());
    tryCall(dimScalarField,icoPoly8ThermoCoalCloud,reactingMultiphaseCloud,Sh());
#else
    tryCall(dimScalarField,coalCloud,reactingMultiphaseCloud,hsTrans());
#endif

    return lcsEnthalpySourcePluginFunction::internalEvaluate();
}
Пример #4
0
Value KJS::DOMStyleSheetList::call(ExecState *exec, Object &thisObj, const List &args)
{
  // This code duplication is necessary, DOMStyleSheetList isn't a DOMFunction
  Value val;
  try {
    val = tryCall(exec, thisObj, args);
  }
  // pity there's no way to distinguish between these in JS code
  catch (...) {
    Object err = Error::create(exec, GeneralError, "Exception from DOMStyleSheetList");
    exec->setException(err);
  }
  return val;
}
autoPtr<lcsSpeciesSourcePluginFunction::dimScalarField>
lcsSpeciesSourcePluginFunction::internalEvaluate(const label speciesIndex)
{
    // pick up the first fitting class
#ifdef FOAM_REACTINGCLOUD_TEMPLATED
    tryCall(dimScalarField,constThermoReactingCloud,reactingCloud,Srho(speciesIndex));
    tryCall(dimScalarField,thermoReactingCloud,reactingCloud,Srho(speciesIndex));
    tryCall(dimScalarField,icoPoly8ThermoReactingCloud,reactingCloud,Srho(speciesIndex));
    tryCall(dimScalarField,constThermoReactingMultiphaseCloud,reactingMultiphaseCloud,Srho(speciesIndex));
    tryCall(dimScalarField,thermoReactingMultiphaseCloud,reactingMultiphaseCloud,Srho(speciesIndex));
    tryCall(dimScalarField,icoPoly8ThermoReactingMultiphaseCloud,reactingMultiphaseCloud,Srho(speciesIndex));
#else
    tryCall(dimScalarField,basicReactingCloud,reactingCloud,Srho(speciesIndex));
    tryCall(dimScalarField,basicReactingMultiphaseCloud,reactingMultiphaseCloud,Srho(speciesIndex));
#endif

    return autoPtr<dimScalarField>();
}