|
[Sponsors] |
Assign Particle Size in java for Polyhedral Partcles |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 20, 2018, 08:02 |
Assign Particle Size in java for Polyhedral Partcles
|
#1 |
New Member
Join Date: Apr 2018
Posts: 1
Rep Power: 0 |
Hello together,
I try to use a CSV file in which I exported location, orientation and particle size from a DEM simulation using Polyhedral Particles for a CFD simulation. Unfortunately I have no idea how to assign the size of the particle in java when I am recreating the particles to use them for CFD. I use a template particle (an elongated dodecahedron) which is imported to my 3D-CAD Geometry. This template particle is transferred several times to parts (translated and rotated). I would like to assign the size from my CSV to the particle as well. This is how the coding looks like in java: cadModel_0.createParts(new NeoObjectVector(new Object[]{body_0})); SolidModelPart solidModelPart_0 = ((SolidModelPart) simulation_0.get(SimulationPartManager.class).getP art("Surface-Knit2")); solidModelPart_0.setPresentationName("Particle Shape " + i); simulation_0.get(SimulationPartManager.class).rota teParts(new NeoObjectVector(new Object[]{solidModelPart_0}), new DoubleVector(new double[]{xRotationAxis, yRotationAxis, zRotationAxis}), new NeoObjectVector(new Object[]{units_0, units_0, units_0}), rotationAngle, labCoordinateSystem_0); simulation_0.get(SimulationPartManager.class).tran slateParts(new NeoObjectVector(new Object[]{solidModelPart_0}), new DoubleVector(new double[]{x, y, z}), new NeoObjectVector(new Object[]{units_0, units_0, units_0}), labCoordinateSystem_0); Only the assignment of the particle size is missing. I saved the particle diameter as volume equivalent sphere in my CSV file. Is there somebody who can help me out? Thanks in advance. |
|
April 22, 2018, 10:45 |
|
#2 |
Senior Member
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20 |
you can set the size in the injector but you might need separate injectors for each size or change the size of one injector at each injection cycle
|
|
Tags |
java, particle position, polyhedral particle, star ccm+ 12.04 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD-DEM Simulation - Particle Size compared to mesh cell size | 90nash | Main CFD Forum | 5 | November 1, 2018 21:50 |
How to assign an initial velocity to a particle? | Hossein1 | Fluent UDF and Scheme Programming | 7 | October 25, 2018 10:43 |
Lagrangian particle tracking and cell size | Julian K. | CFX | 4 | May 27, 2014 12:35 |
In DPM model, with rosin-rammler particle size distribution described problems, thank | fa84a8g779 | FLUENT | 1 | July 11, 2013 22:30 |
Particle size distribution-concentration contours | Umesh Shah | FLUENT | 3 | July 22, 2003 15:46 |