You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am a beginner. Could you please tell me if Fluid X3D can realize my idea: to create a rectangular box, define a velocity on the side of the box to simulate wind blowing, then draw a small hole at the bottom of the box and give it a flow rate or velocity to simulate a leak, and use passive tracer particles to demonstrate the effect of the leak? If it is possible, could you provide me with an idea or a piece of code as a reference?
Another question: Do passive tracer particles need to have their quantity, position, and other information predefined and placed in the box? Can't they flow into the computational domain as a particle stream (similar to DPM particles)?
Looking forward to your response!
The text was updated successfully, but these errors were encountered:
yes FluidX3D can do this, but needs some work from your side on the setup function.
The particles have to be placed manually into the simulation box at initialization. Particle number cannot change during simulation. However, you can manually reposition them in between simulation time steps. See here for a sample setup.
To put particles into an inflow stream, you can use the following trick:
At initialization, place all particles in solid boundary nodes (TYPE_S) somewhere in a wall of the simulation box.
During simulation, run a few time steps with lbm.run(5u);, then place a few of the particles in the inflow stream with randomized coordinates. Don't forget to copy from GPU to CPU memory with lbm.particles->read_from_device(); before modifying positions, and copy back to GPU memory with lbm.particles->write_to_device(); afterwards. If you have a lot of particles and modify only few at a time, use toe offset/length parameters in read_from_device()/write_to_device() to copy only the modified particles.
Thank you for your response!
Could you please tell me how to define a circular hole in the computational domain and assign it a flow rate/pressure to simulate leakage? This problem has been troubling me for a day.
Additionally, I have another question: how can I place the imported geometric model at the bottom of the simulation box so that the bottom of the model aligns perfectly with the bottom of the simulation box?
Looking forward to your response again! Thank you!
Hello, I am a beginner. Could you please tell me if Fluid X3D can realize my idea: to create a rectangular box, define a velocity on the side of the box to simulate wind blowing, then draw a small hole at the bottom of the box and give it a flow rate or velocity to simulate a leak, and use passive tracer particles to demonstrate the effect of the leak? If it is possible, could you provide me with an idea or a piece of code as a reference?
Another question: Do passive tracer particles need to have their quantity, position, and other information predefined and placed in the box? Can't they flow into the computational domain as a particle stream (similar to DPM particles)?
Looking forward to your response!
The text was updated successfully, but these errors were encountered: