CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Collect record of time when particle becomes stuckToWall

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 30, 2018, 09:44
Default Collect record of time when particle becomes stuckToWall
  #1
New Member
 
James C
Join Date: Jan 2017
Posts: 5
Rep Power: 9
jpaolo is on a distinguished road
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)
jpaolo is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 07:58.