|
[Sponsors] |
Calculating gradient of the discontinuous scalar in Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 19, 2020, 09:48 |
Calculating gradient of the discontinuous scalar in Foam
|
#1 |
New Member
Join Date: Mar 2020
Posts: 12
Rep Power: 6 |
Hello,
I defined a scalar only in a portion of mesh (domian 1), and thus it is a discontinuous scalar at the interface which separate the whole domain (domain 1 and domain 2), now I need to calculate the gradient of this scalar, let call it "s". My question is that whether I can still use the "fvc::gard()" to calculate the gradient (s)? If not, could you please recommend another scheme in Openfoam to calculate it, many thanks. |
|
August 22, 2020, 01:20 |
|
#2 |
New Member
dp
Join Date: Jul 2020
Posts: 6
Rep Power: 6 |
Do you mean it is on the boundary of domain 1? if it is a boundary, you can use snGrad. However, since it is discontinuous, the gradient calculated on domain 1 and 2 may be different.
|
|
Tags |
gradient, interface |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 12:04 |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
[mesh manipulation] refineMesh Error | mohsen.boojari | OpenFOAM Meshing & Mesh Conversion | 3 | March 1, 2018 23:07 |
error with reactingFoam | BakedAlmonds | OpenFOAM Running, Solving & CFD | 4 | June 22, 2016 03:21 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |