Skip to content

Commit

Permalink
Removing MFTP suffix from PengRobinson class
Browse files Browse the repository at this point in the history
  • Loading branch information
decaluwe committed Dec 20, 2019
1 parent 0e61798 commit d879455
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 103 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! @file PengRobinsonMFTP.h
//! @file PengRobinson.h

// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.

#ifndef CT_PENGROBINSONMFTP_H
#define CT_PENGROBINSONMFTP_H
#ifndef CT_PENGROBINSON_H
#define CT_PENGROBINSON_H

#include "MixtureFugacityTP.h"
#include "cantera/base/Array.h"
Expand All @@ -16,33 +16,33 @@ namespace Cantera
*
* @ingroup thermoprops
*/
class PengRobinsonMFTP : public MixtureFugacityTP
class PengRobinson : public MixtureFugacityTP
{
public:
//! @name Constructors and Duplicators
//! @{

//! Base constructor.
PengRobinsonMFTP();
PengRobinson();

//! Construct and initialize a PengRobinsonMFTP object directly from an
//! Construct and initialize a PengRobinson object directly from an
//! ASCII input file
/*!
* @param infile Name of the input file containing the phase XML data
* to set up the object
* @param id ID of the phase in the input file. Defaults to the empty
* string.
*/
PengRobinsonMFTP(const std::string& infile, const std::string& id="");
PengRobinson(const std::string& infile, const std::string& id="");

//! Construct and initialize a PengRobinsonMFTP object directly from an
//! Construct and initialize a PengRobinson object directly from an
//! XML database
/*!
* @param phaseRef XML phase node containing the description of the phase
* @param id id attribute containing the name of the phase. (default
* is the empty string)
*/
PengRobinsonMFTP(XML_Node& phaseRef, const std::string& id = "");
PengRobinson(XML_Node& phaseRef, const std::string& id = "");

virtual std::string type() const {
return "PengRobinson";
Expand Down Expand Up @@ -340,7 +340,7 @@ class PengRobinsonMFTP : public MixtureFugacityTP
* Returns the number of solutions found. If it only finds the liquid
* branch solution, it will return a -1 or a -2 instead of 1 or 2. If it
* returns 0, then there is an error.
* The cubic equation is solved using Nickall's method (Ref: The Mathematical Gazette(1993), 77(November), 354–359, https://www.jstor.org/stable/3619777)
* The cubic equation is solved using Nickall's method (Ref: The Mathematical Gazette(1993), 77(November), 354359, https://www.jstor.org/stable/3619777)
*/
int NicholsSolve(double TKelvin, double pres, double a, double b, double aAlpha,
double Vroot[3]) const;
Expand Down
4 changes: 2 additions & 2 deletions interfaces/cython/cantera/ctml_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2478,7 +2478,7 @@ def build(self, p):
k = ph.addChild("kinetics")
k['model'] = self._kin

class PengRobinsonMFTP(phase):
class PengRobinson(phase):
"""A multi-component fluid model for non-ideal gas fluids. """

def __init__(self,
Expand All @@ -2503,7 +2503,7 @@ def __init__(self,
def build(self, p):
ph = phase.build(self, p)
e = ph.child("thermo")
e['model'] = 'PengRobinsonMFTP'
e['model'] = 'PengRobinson'
if self._activityCoefficients:
a = e.addChild("activityCoefficients")
if isinstance(self._activityCoefficients, activityCoefficients):
Expand Down
Loading

0 comments on commit d879455

Please sign in to comment.