CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   uniformFixedValue for velocity (https://www.cfd-online.com/Forums/openfoam/237262-uniformfixedvalue-velocity.html)

JNSN July 8, 2021 04:59

uniformFixedValue for velocity
 
Hi All,


I am trying to use the uniformFixedValue BC in order to set a time dependent inlet velocity. The BC should ramp the inlet velocity from zero to some value within a given time. In previous OF versions this worked fine with the uniformFixedValue type with following code:
Code:

  inlet
  {
    type uniformFixedValue;
    uniformValue
    {
                value (-0.076 0 0);
                type scale;
                scale
                {
                        type quarterSineRamp;
                        start 0;
                        duration 10;
                }
    }
    value $internalField;
  }

However, now interFoam (OpenFOAM-dev) complains about the syntax: "... expected word ... found token '(' ..."
Does anyone have an idea, how to solve this problem?
Thanks in advance,
Jan

JNSN July 11, 2021 04:34

Quote:

Originally Posted by JNSN (Post 807798)
Hi All,


I am trying to use the uniformFixedValue BC in order to set a time dependent inlet velocity. The BC should ramp the inlet velocity from zero to some value within a given time. In previous OF versions this worked fine with the uniformFixedValue type with following code:
Code:

  inlet
  {
    type uniformFixedValue;
    uniformValue
    {
                value (-0.076 0 0);
                type scale;
                scale
                {
                        type quarterSineRamp;
                        start 0;
                        duration 10;
                }
    }
    value $internalField;
  }

However, now interFoam (OpenFOAM-dev) complains about the syntax: "... expected word ... found token '(' ..."
Does anyone have an idea, how to solve this problem?
Thanks in advance,
Jan

Just in case anyone else faces this problem. Was fixed here: https://github.com/OpenFOAM/OpenFOAM...db6a6c55938e13


All times are GMT -4. The time now is 11:54.