From 4380e4df5a79abc638944b8730238faed2e922de Mon Sep 17 00:00:00 2001 From: JokerRayL Date: Mon, 4 Oct 2021 20:09:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86particleModel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bin/GridDataBase_TaylorGreenVortex.hypara | 9 ++ L01_Flat_Plate_1_Part/bin/key.hypara | 4 +- .../bin/particle_para.hypara | 16 ++++ .../bin/particlepoint_para.hypara | 84 +++++++++++++++++++ 4 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 L01_Flat_Plate_1_Part/bin/GridDataBase_TaylorGreenVortex.hypara create mode 100644 L01_Flat_Plate_1_Part/bin/particle_para.hypara create mode 100644 L01_Flat_Plate_1_Part/bin/particlepoint_para.hypara diff --git a/L01_Flat_Plate_1_Part/bin/GridDataBase_TaylorGreenVortex.hypara b/L01_Flat_Plate_1_Part/bin/GridDataBase_TaylorGreenVortex.hypara new file mode 100644 index 00000000..9af8eca7 --- /dev/null +++ b/L01_Flat_Plate_1_Part/bin/GridDataBase_TaylorGreenVortex.hypara @@ -0,0 +1,9 @@ +int nBlocks = 1; + +int nNodeX = 32; +int nNodeY = 32; +int nNodeZ = 1; + +double lengthX = 6.283185307179586476925286766559; +double lengthY = 6.283185307179586476925286766559; +double lengthZ = 6.283185307179586476925286766559; \ No newline at end of file diff --git a/L01_Flat_Plate_1_Part/bin/key.hypara b/L01_Flat_Plate_1_Part/bin/key.hypara index 0400d3ad..34e76a23 100644 --- a/L01_Flat_Plate_1_Part/bin/key.hypara +++ b/L01_Flat_Plate_1_Part/bin/key.hypara @@ -16,7 +16,7 @@ string defaultParaFile = "./bin/cfd_para.hypara"; // 3 -- Grid partition. // 4 -- Knowledge repository / examples of PHengLEI-API. int ndim = 2; -int nparafile = 1; +int nparafile = 2; int nsimutask = 0; string parafilename = "./bin/cfd_para_subsonic.hypara"; @@ -51,3 +51,5 @@ int numberOfGridProcessor = 0; // ATP read //@string parafilename1 = "" //@string parafilename2 = ""; + +string parafilename1 = "./bin/particle_para.hypara"; \ No newline at end of file diff --git a/L01_Flat_Plate_1_Part/bin/particle_para.hypara b/L01_Flat_Plate_1_Part/bin/particle_para.hypara new file mode 100644 index 00000000..b116fa12 --- /dev/null +++ b/L01_Flat_Plate_1_Part/bin/particle_para.hypara @@ -0,0 +1,16 @@ +######################################################################### +# Particle # +######################################################################### +int iParticleModel = 1; + +string particleInterpolation_struct = "TrilinearInterpolation"; + +//! ######################################################################### +//! # File in and out # +//! ######################################################################### +int ifInitParticle = 1; +int ifReadRestartParticle = 0; +int ifWirteRestartParticle = 1; + +string initParticleFile = "./grid/particle_init.h5"; +string restartParticleFile = "./grid/particle_restart.h5"; \ No newline at end of file diff --git a/L01_Flat_Plate_1_Part/bin/particlepoint_para.hypara b/L01_Flat_Plate_1_Part/bin/particlepoint_para.hypara new file mode 100644 index 00000000..a2c448be --- /dev/null +++ b/L01_Flat_Plate_1_Part/bin/particlepoint_para.hypara @@ -0,0 +1,84 @@ +//! @file particle_point_para.hypara +//! @brief This file is the parameter for particle track model +//! @author Lei Yinghaonan. + +//! ######################################################################### +//! # General Global Control Parameter of Simulation # +//! ######################################################################### +//! simulationDimensionType: The type of Dimensionless method. +//! 0 -- The parameter is nondimensional. +//! which is unified with RunCFD. +//! 1 -- The dimension is separated from RunCFD. +//! simulationCollisionType: The type of Collision method. +//! 0 -- No collision +//! 1 -- Use DEM. +//! 2 -- Use collision function. +//! simulationSplashFunction: The type of SplashFunction. +//! 0 -- No Splash. +//! 1 -- Use splash function on wall. +//! simulationPointRotate: If use Rotate. +//! 0 -- No Rotate. +//! 1 -- Caculate the Rotate of point. +int simulationDimensionType = 0; +int simulationCollisionType = 0; +int simulationSplashFunction = 0; +int simulationPointRotate = 0; + +//! ######################################################################### +//! # Pyhsical Parameter on Each Particle # +//! ######################################################################### +//! refDimensionedLength: Dimensioned length,L-(m). +//! refDimensionedMass: Dimensioned mass,m-(kg). +//! refDimensionedTime: Dimensioned time,t-(s). +//! refDimensionedTemperature: Dimensioned temperature,K-(K). +double refDimensionedLength = 1.0; +double refDimensionedMass = 1.0; +double refDimensionedTime = 1.0; +double refDimensionedTemperature = 1.0; + +//! nInitGlobalParticle: The number of particles on all zones when program start. +//! particleDiameter: The dimensionless dimaeter of particle. +//! particleDensity: The dimensionless density of particle. +//! particleTemperature: The dimensionless Temperature of particle. +int nInitGlobalParticle = 10; +int nParticleGroup = 1; +double particleDiameter = 1.0; +double particleDensity = 1.0; +double particleTemperature = 1.0; + +//! ######################################################################### +//! # Particle force model # +//! ######################################################################### +//! nParticleForce: The number of force on particle. +//! See more on Maxey 1983. +//! useSlipVelocityType: The way of how to caculate the slip velocity on particle. +//! forceXXXType: Particle force model +//! 0 -- do not use XXX type. +//! 1~n -- force model. +int nParticleForce = 6; +int useSlipVelocityType =0; + +//! The quasi-steady force (steady-state resistance) force +int forceDragType = 1; + +//! The lift force +int forceMagnusType = 1; +int forceSaffmanType = 1; + +//! The stress-gradient force +int forceFluidAccelerationType = 1; + +//! The added-mass force +int forceAddedMassType = 1; + +//! The Basset history force; +int forceBassetType = 1; + +//! ######################################################################### +//! # Output Variable # +//! ######################################################################### +//! fileParticleOutput: Output file for particle. +//! fileParticleOutputType: Control which variable need to output. +//! 0 -- No output. +string fileParticleOutput = "./result/particleOutput.dat"; +int fileParticleOutputType = 0; \ No newline at end of file