mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pressureTools: use user-pressure name when constructing output field name
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -39,7 +39,7 @@ defineTypeNameAndDebug(pressureTools, 0);
|
|||||||
|
|
||||||
Foam::word Foam::pressureTools::pName() const
|
Foam::word Foam::pressureTools::pName() const
|
||||||
{
|
{
|
||||||
word fieldName = "p";
|
word fieldName = pName_;
|
||||||
|
|
||||||
if (calcTotal_)
|
if (calcTotal_)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user