SPHinXsys  alpha version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPH::LocalDirectionalDiffusion Class Reference

Diffusion is biased along a specific direction. More...

#include <diffusion_reaction.h>

Inherits SPH::DirectionalDiffusion.

Public Member Functions

 LocalDirectionalDiffusion (size_t diffusion_species_index, size_t gradient_species_index, Real diff_cf, Real bias_diff_cf, Vecd bias_direction)
 
virtual Real getInterParticleDiffusionCoff (size_t particle_index_i, size_t particle_index_j, Vecd &inter_particle_direction) override
 
virtual void assignBaseParticles (BaseParticles *base_particles) override
 
virtual void readFromXmlForLocalParameters (const std::string &filefullpath) override
 
- Public Member Functions inherited from SPH::DirectionalDiffusion
 DirectionalDiffusion (size_t diffusion_species_index, size_t gradient_species_index, Real diff_cf, Real bias_diff_cf, Vecd bias_direction)
 
virtual Real getReferenceDiffusivity () override
 
- Public Member Functions inherited from SPH::IsotropicDiffusion
 IsotropicDiffusion (size_t diffusion_species_index, size_t gradient_species_index, Real diff_cf=1.0)
 
- Public Member Functions inherited from SPH::BaseDiffusion
 BaseDiffusion (size_t diffusion_species_index, size_t gradient_species_index)
 
- Public Member Functions inherited from SPH::BaseMaterial
 BaseMaterial (Real rho0)
 
std::string MaterialType ()
 
std::string LocalParametersName ()
 
Real ReferenceDensity ()
 
virtual void writeToXmlForReloadLocalParameters (const std::string &filefullpath)
 
virtual BaseMaterialThisObjectPtr ()
 

Protected Member Functions

void initializeFiberDirection ()
 
- Protected Member Functions inherited from SPH::DirectionalDiffusion
void initializeDirectionalDiffusivity (Real diff_cf, Real bias_diff_cf, Vecd bias_direction)
 

Protected Attributes

StdLargeVec< Vecd > local_bias_direction_
 
StdLargeVec< Matd > local_transformed_diffusivity_
 
- Protected Attributes inherited from SPH::DirectionalDiffusion
Vecd bias_direction_
 
Real bias_diff_cf_
 
Matd transformed_diffusivity_
 
- Protected Attributes inherited from SPH::IsotropicDiffusion
Real diff_cf_
 
- Protected Attributes inherited from SPH::BaseMaterial
std::string material_type_name_
 
std::string parameters_name_
 
Real rho0_
 
BaseParticlesbase_particles_
 
XmlEngine reload_material_xml_engine_
 
ParticleVariableList reload_local_parameters_
 

Additional Inherited Members

- Public Attributes inherited from SPH::BaseDiffusion
size_t diffusion_species_index_
 
size_t gradient_species_index_
 

Detailed Description

Diffusion is biased along a specific direction.

Member Function Documentation

◆ assignBaseParticles()

void SPH::LocalDirectionalDiffusion::assignBaseParticles ( BaseParticles base_particles)
overridevirtual

This will be called in BaseParticle constructor and is important because particles are not defined in SPHBody constructor. For a composite material, i.e. there is a material pointer with another material, one need assign the base particle to that material too.

Reimplemented from SPH::BaseMaterial.


The documentation for this class was generated from the following files: