diff --git a/applications/test/liquid/Test-liquid.C b/applications/test/liquid/Test-liquid.C index 43f82fb2de..005dd335e1 100644 --- a/applications/test/liquid/Test-liquid.C +++ b/applications/test/liquid/Test-liquid.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -25,20 +25,68 @@ Description \*---------------------------------------------------------------------------*/ -#include "C7H8.H" +#include "argList.H" +#include "IFstream.H" +#include "OFstream.H" +#include "liquidProperties.H" + using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Main program: -int main() +int main(int argc, char *argv[]) { - C7H8 fuel; + argList::validArgs.append("liquidName"); + argList::validArgs.append("pMin"); + argList::validArgs.append("pMax"); + argList::validArgs.append("nP"); + argList::validArgs.append("Tmin"); + argList::validArgs.append("Tmax"); + argList::validArgs.append("nT"); + argList args(argc, argv); + const word liquidName(args[1]); - Info<< fuel.rho(1e5, 300) << endl; - Info<< fuel << endl; + const scalar pMin = args.argRead(2); + const scalar pMax = args.argRead(3); + const scalar nP = args.argRead