CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Set a phase shift to the sinusoidal veolocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2022, 22:38
Default Set a phase shift to the sinusoidal veolocity
  #1
New Member
 
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4
letoppina is on a distinguished road
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!
letoppina is offline   Reply With Quote

Reply

Tags
boundary condition, chtmultiregionfoam, fluid displacement, phase shift, sinusoidal motion


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No Phase Shift with CFX YuguiYo CFX 7 June 28, 2016 13:04
iteration questions in discrete phase iknowjesus FLUENT 4 March 13, 2015 07:07
How to show the transient case? H.P.LIU Phoenics 7 July 13, 2010 05:31
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32
How to set phase dependent turbulence models? J.Yang CFX 2 August 29, 2002 16:39


All times are GMT -4. The time now is 02:23.