<commit_before>/****************************************************************/
/*             DO NOT MODIFY OR REMOVE THIS HEADER              */
/*          FALCON - Fracturing And Liquid CONvection           */
/*                                                              */
/*       (c) pending 2012 Battelle Energy Alliance, LLC         */
/*                   ALL RIGHTS RESERVED                        */
/*                                                              */
/*          Prepared by Battelle Energy Alliance, LLC           */
/*            Under Contract No. DE-AC07-05ID14517              */
/*            With the U. S. Department of Energy               */
/*                                                              */
/*            See COPYRIGHT for full restrictions               */
/****************************************************************/

#include "CoupledTemperatureAux.h"
#include "WaterSteamEOS.h"

template<>
InputParameters validParams<CoupledTemperatureAux>()
{
    InputParameters params = validParams<AuxKernel>();
    params.addCoupledVar("pressure", "Use pressure to calculate variable temperature, [Pa]");
    params.addCoupledVar("enthalpy", "Use enthalpy to calculate variable temperature, [J]");
    params.addParam("temperature", 373.15, "Initial value for temperature, [K]");
    //params.addParam("temp_guess", "Guess value for temperature to seed the EOS, [K]");
    params.addRequiredParam<UserObjectName>("water_steam_properties", "EOS functions, calculate water and steam properties");
    return params;
}

CoupledTemperatureAux::CoupledTemperatureAux(const std::string & name,
                                               InputParameters parameters)
    :AuxKernel(name, parameters),
    _water_steam_properties(getUserObject<WaterSteamEOS>("water_steam_properties")),
    _pressure(coupledValue("pressure")),
    _enthalpy(coupledValue("enthalpy")),
     _input_temperature(getParam<Real>("temperature"))
     //  _temp_guess(getParam<Real>("temp_guess"))
{}

Real
CoupledTemperatureAux::computeValue()
{<commit_msg>MOOSE now requires that addParam *always* specifies the type - github #2890<commit_after>/****************************************************************/
/*             DO NOT MODIFY OR REMOVE THIS HEADER              */
/*          FALCON - Fracturing And Liquid CONvection           */
/*                                                              */
/*       (c) pending 2012 Battelle Energy Alliance, LLC         */
/*                   ALL RIGHTS RESERVED                        */
/*                                                              */
/*          Prepared by Battelle Energy Alliance, LLC           */
/*            Under Contract No. DE-AC07-05ID14517              */
/*            With the U. S. Department of Energy               */
/*                                                              */
/*            See COPYRIGHT for full restrictions               */
/****************************************************************/

#include "CoupledTemperatureAux.h"
#include "WaterSteamEOS.h"

template<>
InputParameters validParams<CoupledTemperatureAux>()
{
    InputParameters params = validParams<AuxKernel>();
    params.addCoupledVar("pressure", "Use pressure to calculate variable temperature, [Pa]");
    params.addCoupledVar("enthalpy", "Use enthalpy to calculate variable temperature, [J]");
    params.addParam<Real>("temperature", 373.15, "Initial value for temperature, [K]");
    //params.addParam("temp_guess", "Guess value for temperature to seed the EOS, [K]");
    params.addRequiredParam<UserObjectName>("water_steam_properties", "EOS functions, calculate water and steam properties");
    return params;
}

CoupledTemperatureAux::CoupledTemperatureAux(const std::string & name,
                                               InputParameters parameters)
    :AuxKernel(name, parameters),
    _water_steam_properties(getUserObject<WaterSteamEOS>("water_steam_properties")),
    _pressure(coupledValue("pressure")),
    _enthalpy(coupledValue("enthalpy")),
     _input_temperature(getParam<Real>("temperature"))
     //  _temp_guess(getParam<Real>("temp_guess"))
{}

Real
CoupledTemperatureAux::computeValue()
{
{'fraction_non_alphanumeric': 0.160075329566855, 'fraction_numerical': 0.009416195856873822, 'mean_word_length': 2.15441722345954, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6631575', 'n_tokens_mistral': 1065, 'n_tokens_neox': 995, 'n_words': 234}