The open source CFD toolbox

# Introduction

The test case comprises a 2-D section comprising extruded triangle cells. An initial field is assigned the mesh cell centre values such that the computed gradient should take the value of 1 in each co-ordinate direction. By changing the choice of gradient scheme we can observe how each performs.

# Case set-up

• Gauss linear
• Gauss pointLinear
• leastSquares

Interpolation schemes under test:

## Boundary conditions

Only the left and right domain boundaries are set to physical patch types; the remainder are set to the empty constraint to enforce the 2-D system.

## Mesh

The mesh comprises extruded triangle cells with low non-orthogonality with average and maximum values of 7 and 26 deg, respectively.

## Scheme controls

grad(Cc)        <scheme>


# Results

The following images show the percentage error of the magnitude of the gradient of the cell centres, defined as:

$\textrm{error} = 100 \frac{\left|\grad(C_c)\right| - 2^{0.5}}{2^{0.5}}$

The range is set to +/- 10% for all images.

## Unlimited Gauss linear Gauss point linear Least squares

## Cell limited Gauss linear Gauss point linear Least squares

## Face limited Gauss linear Gauss point linear Least squares

## Multi-directional cell limited Gauss linear Gauss point linear Least squares

## Multi-directional face limited Gauss linear Gauss point linear Least squares

 Would you like to suggest an improvement to this page? Create an issue

Licensed under the Creative Commons License BY-NC-ND
{"ft_lang_label":"__label__en","ft_lang_prob":0.8297436,"math_prob":0.8738094,"size":995,"snap":"2022-05-2022-21","text_gpt3_token_len":236,"char_repetition_ratio":0.10393542,"word_repetition_ratio":0.0,"special_character_ratio":0.24020101,"punctuation_ratio":0.08648649,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99546826,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"im_url_duplicate_count":[null,null,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,1,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-26T17:34:36Z\",\"WARC-Record-ID\":\"<urn:uuid:fc22fdc0-1926-4e01-af1a-3bada2758650>\",\"Content-Length\":\"13137\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c81d62c5-f58c-4e69-9fe2-11d2f9e8ea6d>\",\"WARC-Concurrent-To\":\"<urn:uuid:5c9eaad2-e6c5-49e4-a032-0d31501199e7>\",\"WARC-IP-Address\":\"157.90.1.248\",\"WARC-Target-URI\":\"https://www.openfoam.com/documentation/guides/latest/doc/guide-schemes-gradient-example.html\",\"WARC-Payload-Digest\":\"sha1:66A3VRNQTECA36RNOEEXKVY5SEFQNQER\",\"WARC-Block-Digest\":\"sha1:SRQMYI3KDEODRBY44HJHEJZU7BRCQFYU\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662619221.81_warc_CC-MAIN-20220526162749-20220526192749-00298.warc.gz\"}"}