|
[Sponsors] |
timeVaryingUniformFixedValue (see the graph/picture) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 15, 2014, 14:37 |
timeVaryingUniformFixedValue (see the graph/picture)
|
#1 |
Member
Tommy Sp
Join Date: Jan 2014
Posts: 51
Rep Power: 12 |
Hi
I would to implement "timeVaryingUniformFixedValue" to my inlet pressure (b.c.). But "time" in the source code it seems in "1 2 3 4 5 6 ... ", that is, integer. But I need specify time varying pressure with decimals of seconds "1.0 1.1 1.2 1.3 1.4 1.5......2.0......3.0 3.1seconds" ... and should be polynomial/continuous curve. This is the graph: PRESSURExTIME.jpg on 0/p file, I believe it will be like it: Code:
inlet { type timeVaryingUniformFixedValue; fileName "$FOAM_CASE/time-series"; outOfBounds clamp; } and time-series would be like it: Code:
( (0 value1) (1 value2) (2 value3) (3 value4) ... ) question 2: How should I specify "time-series" file to this graph? question 3: After the program apply the complete sequence of values "time-series", starts a new cycle reproducing the pulse pressure (cyclic process) again? Best regards, Vitor Spadeto Venturin |
|
September 17, 2014, 07:05 |
|
#2 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 13 |
Hello,
"timeVaryingUniformFixedValue" was removed in OpenFOAM 2.1.0. However, a new boundary condition was introduced called "uniformFixedValue" (see http://www.openfoam.org/version2.1.0...conditions.php) There is also the setting "outOfBounds" where you can define what happens when the simulation time is outside of your defined time values, for instance repeat or clamp. Regards |
|
June 29, 2019, 14:59 |
|
#3 | |
New Member
Join Date: Jun 2019
Posts: 15
Rep Power: 6 |
Quote:
|
||
May 29, 2020, 19:18 |
|
#4 | |
Senior Member
|
Quote:
But I found timeVaryingUniformFixedValue works only for pointPatchFields, but uniformFixedValue works both for pointPatchFields and fvPatchFields. Anyway, for pointPatchFields, we can use both. What's the difference? timeVaryingUniformFixedValue /home/michael/OpenFOAM/OpenFOAM-7/src/OpenFOAM/fields/pointPatchFields/derived/timeVaryingUniformFixedValue uniformFixedValue /home/michael/OpenFOAM/OpenFOAM-7/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue uniformFixedValue /home/michael/OpenFOAM/OpenFOAM-7/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue |
||
|
|