|July 2, 2012, 07:22||
icoUncoupledKinematicParcelFoam solver for particles - read U each time step?
Join Date: Jul 2012
Posts: 1Rep Power: 0
So I'm new to using OpenFoam and C++, so pardon me if this is a very simple question. But so we've done some precomputation for the fluid fields, and they've been solved, and now I simply want to inject particles that will be affected by the said field. It's an uncoupled situation, and my mesh is dynamic (but that's already been solved, so that's not a big deal).
Anyways, so since it's uncoupled, I'm going with a lagrangian solver because I want the particle solution. Like I said, the fluid's been solved, and I can put together all the files using reconstructPar. So far, I've been able to leave out the particles and get the mesh to be read at each time step (I assume it's due to mesh.readUpdate() that I put in). I know it's fine because I can see the mesh moving the way I want in paraview. I cannot however, get U to update in the field each time. I'm basing my solver on icoUncoupledKinematicParcelFoam.
What I have tried is to put in a manual update each loop. I just copied and pasted the lines in the solver to recreate a new basicKinematicCollidingCloud each time. However, when I ran this, while the velocities looked right, my particles didn't move or age. I presume this is due to the cloud being recreated each time and the particles having to be reinjected into the new clouds at every step. I also tried changing the U into a non const field in the source code and then doing something like:
*(kinematicCloud.U()) = UatcurrentTimeStep
I think this is a good way to go, though I have been unsuccessful due to my lack of C++ experience.
Any help is appreciated! Thanks. OpenFoam 2.1.1
Last edited by skimmilk; July 3, 2012 at 02:23. Reason: changed title
|February 15, 2016, 04:56||
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 29Rep Power: 2
hope your are still here at the forum ;-)
I am having the same problem, I would like to use
for an existing unsteady solution (gained by pimpleFoam).
Therefore, for every time step a case folder exists.
leads to two problems:
1.) a steady velocity field is used for the tracking of the particles
2.) I cannot set the time step for 'icoUncoupledKinematicParcelFoam' with the 'system/controlDict' file.
Has somebody more experience with 'icoUncoupledKinematicParcelFoam'?
|Thread||Thread Starter||Forum||Replies||Last Post|
|Plotting Radial Velocity and Tangential Velocity in CFD Post||ashtonJ||CFX||5||July 13, 2015 02:49|
|Results of CFX Simulations||Sof_70_Usthb||CFX||3||July 9, 2011 06:15|
|Inlet Velocity in CFX||aeroman||CFX||12||August 6, 2009 18:42|
|maintaining a logarithmic velocity distribution||Morten Andersen||CFX||1||January 8, 2007 12:37|
|Velocity Under-relaxation in SIMPLE type methods||Matt U.||Main CFD Forum||6||July 4, 2005 05:29|