Skip to content

Commit

Permalink
And so, now all is built... but doesn't mean it will work as intended ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyldckat committed Apr 9, 2012
1 parent 613b747 commit 4b59b8c
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
61 changes: 61 additions & 0 deletions src/libraries/pdfThermo/basicPdfThermo/basicPdfThermo.C
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,65 @@ Foam::basicPdfThermo::~basicPdfThermo()
{}


// Virtual stuff
Foam::volScalarField& Foam::basicPdfThermo::csi()
{
notImplemented("basicPdfThermo::csi()");
return const_cast<volScalarField&>(volScalarField::null());
}

const Foam::volScalarField& Foam::basicPdfThermo::csi() const
{
notImplemented("basicPdfThermo::csi() const");
return volScalarField::null();
}

Foam::volScalarField& Foam::basicPdfThermo::csiv2()
{
notImplemented("basicPdfThermo::csiv2()");
return const_cast<volScalarField&>(volScalarField::null());
}

const Foam::volScalarField& Foam::basicPdfThermo::csiv2() const
{
notImplemented("basicPdfThermo::csiv2() const");
return volScalarField::null();
}

Foam::volScalarField& Foam::basicPdfThermo::chi_st()
{
notImplemented("basicPdfThermo::chi_st()");
return const_cast<volScalarField&>(volScalarField::null());
}

const Foam::volScalarField& Foam::basicPdfThermo::chi_st() const
{
notImplemented("basicPdfThermo::chi_st() const");
return volScalarField::null();
}

Foam::volScalarField& Foam::basicPdfThermo::H()
{
notImplemented("basicPdfThermo::H()");
return const_cast<volScalarField&>(volScalarField::null());
}

const Foam::volScalarField& Foam::basicPdfThermo::H() const
{
notImplemented("basicPdfThermo::H() const");
return volScalarField::null();
}

Foam::volScalarField& Foam::basicPdfThermo::as()
{
notImplemented("basicPdfThermo::as()");
return const_cast<volScalarField&>(volScalarField::null());
}

const Foam::volScalarField& Foam::basicPdfThermo::as() const
{
notImplemented("basicPdfThermo::as() const");
return volScalarField::null();
}

// ************************************************************************* //
17 changes: 17 additions & 0 deletions src/libraries/pdfThermo/basicPdfThermo/basicPdfThermo.H
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ SourceFiles
#ifndef basicPdfThermo_H
#define basicPdfThermo_H

#include "volFields.H"
#include "basicThermo.H"
#include "runTimeSelectionTables.H"

Expand Down Expand Up @@ -92,6 +93,22 @@ public:

// Member functions

// Virtual stuff
virtual volScalarField& csi();
virtual const volScalarField& csi() const;

virtual volScalarField& csiv2();
virtual const volScalarField& csiv2() const;

virtual volScalarField& chi_st();
virtual const volScalarField& chi_st() const;

virtual volScalarField& H();
virtual const volScalarField& H() const;

virtual volScalarField& as();
virtual const volScalarField& as() const;

// Fields derived from thermodynamic state variables

//- Density [kg/m^3] - uses current value of pressure
Expand Down

0 comments on commit 4b59b8c

Please sign in to comment.