Skip to content

Custom Dynamic Touple SourcedDynamic

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Custom Dynamic Touple SourcedDynamic

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10194
    beko337
    Participant

    Hello, I want to create a custom Advection Diffusion BGK dynamic, that has ParameterFromCell but is also sourced. At the moment I use the following structure for the ParameterFromCell only:

    using LocalOmegaADBGK = dynamics::Tuple<
    T, DESCRIPTOR_AD,
    momenta::AdvectionDiffusionBulkTuple,
    equilibria::FirstOrder,
    collision::ParameterFromCell<descriptors::OMEGA, collision::BGK>,
    AdvectionDiffusionExternalVelocityCollision>;

    How can i add the source to my dynamic?
    Thank you!

    #10196
    Adrian
    Keymaster

    Currently there is no collision modifier for sourced ADE implemented in the code (which would make this a one-line change).

    How we commonly do this is via a custom collision SourcedAdvectionDiffusionBGKdynamics (see src/dynamics/advectionDiffusionDynamics.h). So you can either copy this dynamics and adapt to your needs or you can implement a sourced collision modifier that you can combined with the ParameterFromCell (if so I can help you by giving the first steps).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.