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
-
FlowAdaptor(ScaLBL_ColorModel &M)¶
Create a flow adaptor to operate on the LB model.
- Parameters
-
double ImageInit(ScaLBL_ColorModel &M, std::string Filename)¶
Image re-initialization.
Re-initialize LB simulation from image data
- Parameters
Filename – name of input file to be used to read image
-
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
-
double SeedPhaseField(ScaLBL_ColorModel &M, const double seed_water_in_oil)¶
image re-initialization
Re-initialize LB simulation from image data
- Parameters
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
delta_volume – target change in volume fraction
-
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
-
~FlowAdaptor()¶
Destructor.
-
void Flatten(ScaLBL_ColorModel &M)¶