|
[Sponsors] |
[HOW TO] Get access to the velocity gradient at a point??? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2016, 12:40 |
[HOW TO] Get access to the velocity gradient at a point???
|
#1 | |
New Member
Join Date: Nov 2016
Posts: 16
Rep Power: 10 |
Dear Foamer,
I want to calculate the velocity gradient tensor on a parcel for Lagrangian tracking. The code is in KinematicParcel.C: Quote:
1. The first line cannot parallel computed, I don't the reason. 2. For every parcel, the first line will be executed. If tracking many parcels, its time consuming. Is there any solution for: 1. Parallel compute fvc::grad()?? 2. Or directly obtain the velocity gradient tensor at the cell point (remove line 1 and only keeps line 2 & 3)?? It bothers me for a long time. Thank you very much in advance! Best, ycui |
||
December 6, 2016, 12:19 |
|
#2 |
New Member
Join Date: Nov 2016
Posts: 16
Rep Power: 10 |
I solve this problem, by:
1. put fvc::grad(U) in side CreateFields.H, read by the constructor of KinematicCloud.H, and set as vgt (velocity gradient tensor) a parameter. 2. set the interpolation function of vgt in KinematicParcle.H, otherwise cannot parallel computing. 3. use the interpolation function in KinematicParcle.C. Then it runs very fast since for every time step fvc::grad(U) only calculate once, and allows for parallel computing. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Annotate velocity of specific cell or point | jwstolk | ParaView | 4 | August 5, 2016 06:50 |
[snappyHexMesh] How to define to right point for locationInMesh | Mirage12 | OpenFOAM Meshing & Mesh Conversion | 7 | March 13, 2016 15:07 |
[snappyHexMesh] determining displacement for added points | CFDnewbie147 | OpenFOAM Meshing & Mesh Conversion | 1 | October 22, 2013 10:53 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 03:13 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |