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

Modify Particle Velocity in Lagrangian Solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2018, 17:38
Default Modify Particle Velocity in Lagrangian Solver
  #1
New Member
 
Join Date: Jun 2018
Posts: 3
Rep Power: 7
AustinG is on a distinguished road
Hello,


I am using MPPICFoam, and I have added a new force submodel to the solver. I want to modify the parcel velocity from within the newly added submodel, but it seems that I can only access it due to this "const" declaration. See bolded "const" declaration in code snippet below.



Code:

template<class CloudType>
Foam::forceSuSp Foam::PlessisMasliyahDragForce<CloudType>::calcCoupled
(
    const typename CloudType::parcelType& p,
    const scalar dt,
    const scalar mass,
    const scalar Re,
    const scalar muc
) const
I have tried to code a modification to the particle velocity but it always returns errors. Is there a way to modify the particle velocity directly within a submodel like this?


Thank you for any help!
Austin
AustinG is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
dispersion model with lagragian particle tracking model for incompressible flows eelcovv OpenFOAM Running, Solving & CFD 54 April 10, 2018 09:36
Particle tracking error alchem OpenFOAM Bugs 5 May 6, 2017 16:30
VELOCITY vs VELOCITY IN STN FRAME vs RELATIVE VELOCITY everest20 FLUENT 1 July 13, 2015 08:35
Calculating lagrangian particle velocity at a particular cellZone kalyan OpenFOAM Running, Solving & CFD 0 September 30, 2014 05:54
Check particle impaction with User Fortran Julian K. CFX 3 January 12, 2012 09:46


All times are GMT -4. The time now is 15:10.