|
[Sponsors] |
August 7, 2018, 03:05 |
dsmcfoam particle's error!
|
#1 |
Member
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10 |
hi everyone !
i would be very glad if you help me with this problem ! when i set the nEquivalentParticles in the constant folder to 1e9 , the problem occurs . " --> FOAM Warning : From function void Foam:article::locate(const vector&, const vector*, Foam::label, bool, Foam::string) in file particle/particle.C at line 512 Suppressing any further warnings about particles being located outside of the mesh. " i did not change anything in the solver and everything except the mesh particles are the same as wedge15Ma5. Thanks anyway for your help. Bests . |
|
August 8, 2018, 04:46 |
|
#2 |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
Hello Amirhossein,
I get the same error sometimes, but it depends on the geometry. I get it for small wedges and non-orthogonal cells. I normally change the geometry to get rid off it, but that may not be possible for all cases and is not very satisfying. Unfortunately I also do not know the cause. When I tried to look into it, I found that particles outside cells should be moved along the trajectory between the particle and the cell centre until they are inside the cell again. Before the code looks whether the particle is in a bounding box (a box containing the cell whose edges are parallel to x,y,z ). I guessed it could be connected this bounding box, but never looked more into it. Did you loose your particle, next to a sharp corner of your computational domain? |
|
August 8, 2018, 16:35 |
|
#3 |
Member
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10 |
Dear ano ,
thanks for your reply , about that problem , i noticed that when i changed the particle numbers ( no matter more or less than 5e12) it happens !!!! i myself do not know why ! but now its running successfully with nEquivalentParticles = 5e12 but its not totally good for me because i need more particles . Do you have any ideas about that ? bests. Amir . |
|
August 9, 2018, 06:28 |
|
#4 |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
Dear Amir,
Could you give me a nEquivalentParticles number where a particle gets lost? I tried with 1e11 and 1e12 but nothing happened. I also tried 1e9, but stopped after a short time, since a calculation with 140 mio particles is rather time consuming for a testcase. I used OF5 for the test. Which version are you using? |
|
August 10, 2018, 06:54 |
|
#5 |
Member
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10 |
Dear ano ;
i use OF5 too. first i tried with 1.68e11 .. then tried every number with order of 11 and 10 and 9 . with these numbers the soloution crashed . can i have your mail and we talk about this over there ?? i could send some of my files over there for you . bests Amir. |
|
August 13, 2018, 03:13 |
|
#6 | |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
Dear Amir,
I run now with 1e9 particles per parcel and everything was fine. Since we both use the same tutorial, I guessed that perhaps the difference could be that I use OF5.x and you perhaps 5.0? I looked into the git log and found this commit: Quote:
CFD direct describe the barycentric particle tracking roughly on their website. PS: I think that this is an important issue for any dsmcFoam user and since I still hope that someone answers who knows more on this topic, I would like to keep it in the forum. |
||
August 14, 2018, 09:05 |
|
#7 |
Member
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10 |
Dear ano ,
i know what you are saying exactly but the difference is my geometry and due to this difference my cells number are different ! what is the geometry you are talking about that is ok with 1e9 ? |
|
August 14, 2018, 09:13 |
|
#8 |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
You said in your first post everything in your case except the particles number would be the same as in wedge15Ma5.
So I used this as a test case, however, what cfd direct promises for the new OF versions sounds like it should work with any geometry. So you could try the newest OF versions first. And in case it is still not running upload your case here. If you want to stay with the old OF versions: Look whether you have small wedges (or highly non-orthogonal cells) and try to eliminate them from your geometry. |
|
August 14, 2018, 10:49 |
|
#9 |
Member
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 56
Rep Power: 10 |
Dear ano
at first i said except mesh ! i mean i changed the geometry to something else in my case ! anyway thanks for your help ! do you have any reference that explain what is nEquivalentParticles ? i think my problem is lack of understanding about this parameter. thanks. Amir. |
|
August 14, 2018, 11:20 |
|
#10 |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
Dear Amir,
sorry, I had problems to understand the two sentences one after the other without punctuation. nEquivalentParticles is just the number of representative particles. Instead of solving for all molecules, nEquivalentParticles are represented by only one particle. That saves a lot of computational cost. Your mesh probably has sharp corners as mentioned before and on these you lose the particles. By reducing the number of nEquivalentParticles you increase the computational particles and therefore change the probability of this happening. But if it happens for a certain geometry it will certainly happen for any nEquivalentParticles. Spending time in changing nEquivalentParticles is useless and not the problem you have. Try either to use a newer OF version or change your geometry in a manner to avoid sharp corners/wedges. But I have the feeling this endless loop doesn't help either of us... |
|
August 14, 2018, 11:23 |
|
#11 |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
Dear Amir,
Sorry, I had problems to understand the two sentences one after the other without punctuation. nEquivalentParticles is just the number of representative particles. Instead of solving for all molecules, the number of nEquivalentParticles are represented by only one particle. This representation makes the simulation much faster. Your mesh probably has sharp corners as mentioned before and on these you lose the particles. By reducing the number of nEquivalentParticles you increase the computational particles and therefore change the probability of this happening. But if it happens for a certain geometry it will certainly happen for any nEquivalentParticles. Spending time in changing nEquivalentParticles is useless and not the problem you have. Try either to use a newer OF version or change your geometry in a manner to avoid sharp corners/wedges. But I have the feeling this endless loop doesn't help either of us... |
|
June 9, 2023, 08:06 |
Could it be? locationInMesh on blockmesh cell edge?
|
#12 |
New Member
Nate
Join Date: Feb 2022
Posts: 2
Rep Power: 0 |
I understand this is ~4 years to late, but I was having the same warning. Everything was working ok, but very early in the meshing phase I was seeing this warning of particle initialised outside of mesh, which was concerning. I think the issue was that my "locationInMesh" value was on an edge of the block mesh. My block mesh has 2x2x2 mm cells, so cell edges would be on even values.
Original snappyHexMesh value: locationInMesh (-.01 0 0); /meters updated snappyHexMesh value: locationInMesh (-.011 0 0); /meters all warnings went away, by simply moving the locationInMesh value off a cell edge. Hope this may help someone in the future. |
|
Tags |
dsmc, dsmcfoam, dsmcinitialize, particles |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
checking the system setup and Qt version | vivek070176 | OpenFOAM Installation | 22 | June 1, 2010 13:34 |
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." | sega | OpenFOAM Community Contributions | 12 | February 17, 2010 10:30 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |