FlowAdaptor

class FlowAdaptor
#include <FlowAdaptor.h>

The FlowAdaptor class operates on a lattice Boltzmann model to alter the flow conditions.

Public Functions

void Flatten(ScaLBL_ColorModel &M)

Re-initialize LB simulation.

Parameters

MScaLBL_ColorModel

FlowAdaptor(ScaLBL_ColorModel &M)

Create a flow adaptor to operate on the LB model.

Parameters

MScaLBL_ColorModel

double ImageInit(ScaLBL_ColorModel &M, std::string Filename)

Image re-initialization.

Re-initialize LB simulation from image data

Parameters
double MoveInterface(ScaLBL_ColorModel &M)

Fast-forward interface motion.

Accelerate the movement of interfaces based on the time derivative Optional keys to control behavior can be specified in the input database: move_interface_cutoff identifies the diffuse interface region move_interface_factor determines how much to ``fast forward”

Parameters

MScaLBL_ColorModel

double SeedPhaseField(ScaLBL_ColorModel &M, const double seed_water_in_oil)

image re-initialization

Re-initialize LB simulation from image data

Parameters
  • MScaLBL_ColorModel

  • seed_water_in_oil – controls amount of mass to randomly seed into fluids

double ShellAggregation(ScaLBL_ColorModel &M, const double delta_volume)

Update volume fraction based on morphological algorithm. Dilation / erosion algorithm will be applied to grow / shrink the phase regions

Parameters
double UpdateFractionalFlow(ScaLBL_ColorModel &M)

Update fractional flow condition. Mass will be preferentially added or removed from phase regions based on where flow is occurring

Parameters

MScaLBL_ColorModel

~FlowAdaptor()

Destructor.

Public Members

DoubleArray phi
DoubleArray phi_t

Private Members

int Nx
int Ny
int Nz
int timestep
int timestep_previous