How to change the number of parcels at each patch with simulation time step
Hi Bruno,
Thanks for your reply. I will see whether brownian motion can be used in my case or not. But before that can you please help me in answering the following questions I already explained my problem in my previous post and i am using uncoupled kinematicparcelfoam for coupling lagrangian particles with the eulerian one. Now in that i have to do two things. 1. I have to enter different number of parcels at each patch in the computational domain. Can you tell me the best injection model to do that?? So far I know only manual injection or patch injection 2. Next, in my case as simulation time step changes the number of particles at each patch change. So please tell how can i do that in my problem?? Where i have to do the changes and how to do that changes so that i can change the number of particles at each patch with simulation time step?? If some more description om my problem is needed. Please tell Best Ajay [Moderator note: Moved from https://www.cfd-online.com/Forums/op...liftforce.html] |
Quick answers: I've moved your post to a new thread, given that it was not related anymore to the other thread.
Quote:
Quote:
The best I can do is suggest that you study all of the injection models that exist. You can find a graph with the existing models here: https://cpp.openfoam.org/v6/classFoa...tionModel.html Then based on the features available on each model, then you can decide how to create a new model that does what you want. Quote:
|
Hi bruno,
By patch i mean each mesh element. What i mean to say is that suppose there is a rectangular computational domain in which there are 500 mesh elements. 1. Now i want to enter particles at each mesh element in the computational domain. 2. Now further i want to change the number of particles at each mesh element as simulation time step progresses. For example: if at one mesh element if i add a manual injector and give the particle coordinates to be injected and lets say particles added are 4. Then at the next time step at the same coordinate i have to inject let's say 2 particles and so on. Then how to do that. One solution, which i am trying is that to add different injection models (manual injector) in the kinematic cloud properties and from each manual injector i am reading kinematic cloud positions file (in which the coordinates and no. of parcels at each mesh element are specified). And for time i am specifying different Start of injection (SOI) for each injector model. A sample i am attaching. Code:
Next for injector 2 when it reads kinematiccloudpostions1 file it injects particles at each mesh element according to the coordinates given in the file and SOI is 36 sec. So this is how i am doing to update number of particles with time step.. I am asking whether i am doping right or not.. Or is there any other way to do that. Hope i am able to explain my problem. |
Quick note: I haven't managed to read your post properly yet, but I've stumbled upon a tutorial/report at Chalmers which may be useful to what you want to do exactly: http://www.tfd.chalmers.se/~hani/kur.../tutorial1.pdf - Start reading from chapter 5.
|
Doubt
Hi Bruno,
i read the report you sent to me and accordingly i changed the libraries which were needed to inject different particles at different mesh elements. But now one problem is coming. When i run the case the running process on the terminal gets stuck on this line. Code:
Time = 32 After this nothing is happening. Please help me in this regard. PS i am not able to attach my test case here as i am getting this error message Your submission could not be processed because a security token was missing. If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error. |
Hi Ajay,
Sorry, I had some very busy weeks since before your last post and I was not able to come by and see your post. From what I can briefly see, the problem seems to be that somehow it suddenly had 201277314 sub-cycles to analyze for collisions between only 5 parcels or particles, which is really strange. If customized code is involved, then something went wrong in its coding and there could be memory corruption happening somewhere. Either way, I hope you've managed to solve this issue since then. Best regards, Bruno |
Hi bruno,
Glad you have a look at my error message. I was able to resolve it when i changed basickinematiccollidingcloud to basicKinematiccloud in createFields and the basic code. By changing this the solver ran. But i have one doubt. 1. By changing this does it mean that there will be colliding of parcels now? 2. If i have to incorporate the colliding of parcels (4 way coupling). How should i do it? What changes should i make in the solver and code?? Best Ajay |
Quick answers:
|
All times are GMT -4. The time now is 14:34. |