abarret / multiphase-stokes

Solver a mixture of fluids based on IBAMR
1 stars 0 forks source link

Forcing changes #47

Closed abarret closed 1 year ago

abarret commented 1 year ago

This adds a new function to register forcing functions that need to be scaled by volume fraction. This also allows multiple forcing functions to be registered simultaneously.

There are now two ways to register forcing functions.

  1. registerForcingFunction() can set forces that are directly applied to the momentum equation. For example, manufactured solution forces need to be registered in this way.
  2. registerForcingFunctionScaled() scales the force by thn (or ths) before filling in the RHS. For example, the four roll mill background force needs to be registered in this way.

Note that this removes the need for the separate FRMThnForcing class. Now that function can be read in from the input file.