SPHinXsys
alpha version
|
Viscoelastic fluid particles. More...
#include <fluid_particles.h>
Inherits SPH::FluidParticles.
Public Member Functions | |
ViscoelasticFluidParticles (SPHBody &sph_body, Oldroyd_B_Fluid *oldroyd_b_fluid) | |
virtual void | initializeOtherVariables () override |
virtual ViscoelasticFluidParticles * | ThisObjectPtr () override |
Public Member Functions inherited from SPH::FluidParticles | |
FluidParticles (SPHBody &sph_body, Fluid *fluid) | |
Public Member Functions inherited from SPH::BaseParticles | |
BaseParticles (SPHBody &sph_body, BaseMaterial *base_material) | |
template<typename VariableType > | |
void | registerVariable (StdLargeVec< VariableType > &variable_addrs, const std::string &variable_name, VariableType initial_value=VariableType(0)) |
template<typename VariableType , class InitializationFunction > | |
void | registerVariable (StdLargeVec< VariableType > &variable_addrs, const std::string &variable_name, const InitializationFunction &initialization) |
template<typename VariableType > | |
StdLargeVec< VariableType > * | getVariableByName (const std::string &variable_name) |
template<typename VariableType > | |
void | addVariableNameToList (ParticleVariableList &variable_name_list, const std::string &variable_name) |
template<typename VariableType > | |
void | addVariableToWrite (const std::string &variable_name) |
template<class DerivedVariableMethod > | |
void | addDerivedVariableToWrite () |
template<typename VariableType > | |
void | addVariableToRestart (const std::string &variable_name) |
template<typename VariableType > | |
void | addVariableToReload (const std::string &variable_name) |
template<typename VariableType > | |
void | registerSortableVariable (const std::string &variable_name) |
SPHBody * | getSPHBody () |
void | addBufferParticles (size_t buffer_size) |
void | copyFromAnotherParticle (size_t this_index, size_t another_index) |
void | updateFromAnotherParticle (size_t this_index, size_t another_index) |
size_t | insertAGhostParticle (size_t index_i) |
void | switchToBufferParticle (size_t index_i) |
template<typename OutStreamType > | |
void | writeParticlesToVtk (OutStreamType &output_stream) |
void | writeParticlesToPltFile (std::ofstream &output_file) |
virtual void | writeSurfaceParticlesToVtuFile (std::ostream &output_file, BodySurface &surface_particles) |
void | resizeXmlDocForParticles (XmlEngine &xml_engine) |
void | writeParticlesToXmlForRestart (std::string &filefullpath) |
void | readParticleFromXmlForRestart (std::string &filefullpath) |
XmlEngine * | getReloadXmlEngine () |
void | writeToXmlForReloadParticle (std::string &filefullpath) |
void | readFromXmlForReloadParticle (std::string &filefullpath) |
virtual Vecd | getKernelGradient (size_t index_i, size_t index_j, Real dW_ij, Vecd &e_ij) |
virtual Vecd | ParticleTotalAcceleration (size_t index_i) |
virtual Real | ParticleVolume (size_t index_i) |
virtual Real | ParticleMass (size_t index_i) |
template<typename StreamType > | |
void | writeParticlesToVtk (StreamType &output_stream) |
Public Attributes | |
StdLargeVec< Matd > | tau_ |
StdLargeVec< Matd > | dtau_dt_ |
Public Attributes inherited from SPH::FluidParticles | |
StdLargeVec< Real > | p_ |
StdLargeVec< Real > | drho_dt_ |
StdLargeVec< Real > | rho_sum_ |
StdLargeVec< int > | surface_indicator_ |
Public Attributes inherited from SPH::BaseParticles | |
StdLargeVec< Vecd > | pos_ |
StdLargeVec< Vecd > | vel_ |
StdLargeVec< Vecd > | acc_ |
StdLargeVec< Vecd > | acc_prior_ |
StdLargeVec< Real > | Vol_ |
StdLargeVec< Real > | rho_ |
StdLargeVec< Real > | mass_ |
Real | rho0_ |
Real | sigma0_ |
Real | speed_max_ |
Real | signal_speed_max_ |
size_t | total_real_particles_ |
size_t | real_particles_bound_ |
size_t | total_ghost_particles_ |
ParticleData | all_particle_data_ |
ParticleDataMap | all_variable_maps_ |
StdVec< ParticleDynamics< void > * > | derived_variables_ |
ParticleVariableList | variables_to_write_ |
StdLargeVec< size_t > | unsorted_id_ |
StdLargeVec< size_t > | sorted_id_ |
StdLargeVec< size_t > | sequence_ |
ParticleData | sortable_data_ |
ParticleDataMap | sortable_variable_maps_ |
Additional Inherited Members | |
Protected Member Functions inherited from SPH::BaseParticles | |
void | addAParticleEntry () |
virtual void | writePltFileHeader (std::ofstream &output_file) |
virtual void | writePltFileParticleData (std::ofstream &output_file, size_t index_i) |
Protected Attributes inherited from SPH::BaseParticles | |
SPHBody * | sph_body_ |
std::string | body_name_ |
XmlEngine | restart_xml_engine_ |
XmlEngine | reload_xml_engine_ |
ParticleVariableList | variables_to_restart_ |
ParticleVariableList | variables_to_reload_ |
DataAssembleOperation< resizeParticleData > | resize_particle_data_ |
DataAssembleOperation< addAParticleDataValue > | add_a_particle_value_ |
DataAssembleOperation< copyAParticleDataValue > | copy_a_particle_value_ |
Viscoelastic fluid particles.
|
overridevirtual |
initialize other variables based one geometric variables and material
Reimplemented from SPH::FluidParticles.
StdLargeVec<Matd> SPH::ViscoelasticFluidParticles::dtau_dt_ |
change rate of elastic stress
StdLargeVec<Matd> SPH::ViscoelasticFluidParticles::tau_ |
elastic stress