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

Calculating gradient of the discontinuous scalar in Foam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2020, 09:48
Default Calculating gradient of the discontinuous scalar in Foam
  #1
New Member
 
Join Date: Mar 2020
Posts: 12
Rep Power: 6
Huihui Xiao is on a distinguished road
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.
Huihui Xiao is offline   Reply With Quote

Old   August 22, 2020, 01:20
Default
  #2
New Member
 
dp
Join Date: Jul 2020
Posts: 6
Rep Power: 5
shuxuejia is on a distinguished road
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.
shuxuejia is offline   Reply With Quote

Reply

Tags
gradient, interface

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
[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


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