CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Set a phase shift to the sinusoidal veolocity (https://www.cfd-online.com/Forums/openfoam-pre-processing/243969-set-phase-shift-sinusoidal-veolocity.html)

letoppina July 14, 2022 21:38

Set a phase shift to the sinusoidal veolocity
 
Hello,



I am using OpenFOAM version 6 and chtmultiregionfoam solver. This is my current boundary condition (sinusoidal motion) for the velocity of water region (fluid region):



Code:

internalField  uniform (0 0 0);

boundaryField
{
    #includeEtc "caseDicts/setConstraintTypes"

    minX
    {   
        type        uniformFixedValue;
    uniformValue sine;
        uniformValueCoeffs
        {
            frequency 0.1;
            amplitude 0.015;
            scale    (0.8 0 0);
            level    (0 0 0); // offset
            t0          0; // shift this for a Cosinus
        }         

    }
    maxX
    {
        type            zeroGradient;
    }

    "(min|max)(Z)"
    {
        type            empty;
        ~value;
    }

    "water_to_.*"
    {
        type            noSlip;
    }
}




If I want to give a phase shift of the sinusoidal waveform (for instance, a 60 degree shift), how can I impose it? (I guess I would have to modify the t0 value but I am not sure how precisely).



Thank you all for your help!


All times are GMT -4. The time now is 09:59.