Difference between revisions of "OscillatingFixedValue"

From OpenFOAMWiki
(New page: Searching the tutorials I couldn't find an example of how to use this type of boundary condition, so I've created a very small and simple tutorial. Basically, the setup requires the defini...)
 
Line 2: Line 2:
 
     inlet
 
     inlet
 
     {
 
     {
type oscillatingFixedValue;
+
        type oscillatingFixedValue;
amplitude      0.5;
+
        amplitude      0.5;
frequency      0.2;
+
        frequency      0.2;
refValue           uniform (1 0 0);
+
        refValue       uniform (1 0 0);
 
     }
 
     }
 
The above setup enables to specify a boundary condition for an entire patch that varies in time as:
 
The above setup enables to specify a boundary condition for an entire patch that varies in time as:
 
<math>1+amplitude\cdot\sin\left(2\pi\cdot frequency\cdot t\right)</math>
 
<math>1+amplitude\cdot\sin\left(2\pi\cdot frequency\cdot t\right)</math>
 
[[Image:U.gif|Unsteady Velocity Field]]
 
[[Image:U.gif|Unsteady Velocity Field]]
 +
 
[[Media:bcOscilating.tar.gz|Sample OpenFOAM case]]
 
[[Media:bcOscilating.tar.gz|Sample OpenFOAM case]]

Revision as of 13:17, 17 March 2009

Searching the tutorials I couldn't find an example of how to use this type of boundary condition, so I've created a very small and simple tutorial. Basically, the setup requires the definition of 4 parameters:

   inlet
   {
       type oscillatingFixedValue;
       amplitude       0.5;
       frequency       0.2;
       refValue        uniform (1 0 0);
   }

The above setup enables to specify a boundary condition for an entire patch that varies in time as: 1+amplitude\cdot\sin\left(2\pi\cdot frequency\cdot t\right) Unsteady Velocity Field

Sample OpenFOAM case