ENH: support time-varying Tref for externalCoupledTemperature (#1729)

This commit is contained in:
Mark Olesen
2020-06-15 15:33:39 +02:00
parent c21c5e070a
commit 458cec60b1
3 changed files with 42 additions and 26 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -29,7 +29,16 @@ T
inletWalls
{
type externalCoupledTemperature;
// outputTemperature fluid; // fluid|wall
outputTemperature fluid; // (fluid|wall)
htcRefTemperature user; // (cell|user)
Tref
{
type expression;
// arg() means time here
expression #{ arg() <= 0.1 ? 300 : 320 #};
}
}
}
}