# Class HarmonicBC¶

class HarmonicBC : public BoundaryCondition

This class models a simple harmonic boundary conditions for prescribing the velocities in a Dynamical System.

A simple boundary condition is considered to fix a component $$j$$ of the velocity vector, i.e., $$v_j(t) = a + b cos( \omega t+ \phi)$$.

Public Functions

HarmonicBC(SP::UnsignedIntVector newVelocityIndices, double a, double b, double omega, double phi)

Constructor.

Parameters
• newVelocityIndices: the indices of the velocity subjected to prescribed velocities

• a: constant value for additive term of the prescribed velocity

• b: constant value for multiplicative term of the prescribed velocity

• omega: frequency

• phi: phase

virtual ~HarmonicBC()

destructor

virtual void computePrescribedVelocity(double time)

default function to compute the precribed velocities

Parameters
• time: : the current time