Class HarmonicBC#

Defined in Program listing for file kernel/src/modelingTools/HarmonicBC.hpp

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)#


  • 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()#


virtual void computePrescribedVelocity(double time)#

default function to compute the precribed velocities


time – : the current time