|
[Sponsors] |
Collect record of time when particle becomes stuckToWall |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 30, 2018, 09:44 |
Collect record of time when particle becomes stuckToWall
|
#1 |
New Member
James C
Join Date: Jan 2017
Posts: 5
Rep Power: 9 |
Hi all, does anyone know how to get the time in OpenFOAM to be collected?
What I mean is that, in dsmcFOAM+ there is a wall boundary condition (https://github.com/MicroNanoFlows/Op...useWallPatch.C) that particles can stick to, but I also want to record the time when the particle sticks to that wall. I have tried adding this; //Particle becomes stuck to wall stuckToWall = 1; measurePropertiesBeforeControl(p); //get time from runTime scalar t = runTime().value(); but I get error stating; dsmcSelectiveDiffuseSpecularStickingWallPatch2.C: In member function ‘virtual void Foam::dsmcSelectiveDiffuseSpecularStickingWallPatc h2::controlParticle(Foam::dsmcParcel&, Foam::dsmcParcel::trackingData&)’: dsmcSelectiveDiffuseSpecularStickingWallPatch2.C:1 99:32: error: ‘runTime’ was not declared in this scope scalar t = runTime().value(); ^ dsmcSelectiveDiffuseSpecularStickingWallPatch2.C:1 99:20: warning: unused variable ‘t’ [-Wunused-variable] scalar t = runTime().value(); ^ Any help on how I can edit the boundary condition to record the time when the particle becomes stuck to the wall would be much appreciated. Thank you! (Link to BC - https://github.com/MicroNanoFlows/Op...useWallPatch.C) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Particle tracking error | alchem | OpenFOAM Bugs | 5 | May 6, 2017 16:30 |
Stuck in a Rut- interDyMFoam! | xoitx | OpenFOAM Running, Solving & CFD | 14 | March 25, 2016 07:09 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 01:30 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 22:40 |