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

CDS vs UDS fvScheme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2015, 09:25
Default CDS vs UDS fvScheme
  #1
New Member
 
Join Date: Nov 2015
Posts: 2
Rep Power: 0
TehHO is on a distinguished road
Hi there. I'm trying to simply solve the steady-state convection-diffusion problem for a global peclet number of 10, and investigate the effects of various finite volume schemes, by doing a convergence analysis of the schemes and compute the rate of convergence for each scheme.

I know that a CDS scheme should have a rate of convergence of 2, in a loglog plot, and a UDS should be of order 1 (because of points in stencil).

I've set up the model in OpenFOAM, but when I investigate my results there seems to be somthing wrong. The error, that is max[abs(t_numerical-T_analytical)], of the two schemes seem to lie (almost right on top of each other, see: http://i.imgur.com/eNyYUDj.jpg).

The scalarTransportFoam tutorial is modified for the exampled of interest.

I've included my two fvSchemes files for the model below, if someone could please tell me why the results are almost identical, that would be very sweet! Thank you!


fvScheme-file for UDS case
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
default steadyState;
}

gradSchemes
{
default Gauss linear;
grad(phi,T) Gauss upwind;
}

// change : div(phi,T) Gauss upwind ; to
// div (phi,T) Gauss linearUpwind ;
divSchemes
{
default none;
div(phi,T) Gauss upwind;
}

laplacianSchemes
{
default none;
laplacian(DT,T) Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
T ;
}


// ************************************************** *********************** //

fvScheme-file for CDS case
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
default steadyState;
}

gradSchemes
{
default Gauss linear;
}

// change : div(phi,T) Gauss upwind ; to
// div (phi,T) Gauss linearUpwind ;
divSchemes
{
default none;
div(phi,T) Gauss linear ;
}

laplacianSchemes
{
default none;
laplacian(DT,T) Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
T ;
}


// ************************************************** *********************** //
TehHO is offline   Reply With Quote

Reply


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
When to use User-defined Scalar (UDS) for concentration? THC FLUENT 1 May 30, 2019 09:04
Can you explain me how to use UDS? Tleja Fluent UDF and Scheme Programming 0 July 14, 2015 01:52
Set UDS on wall... fivos Fluent UDF and Scheme Programming 2 July 25, 2014 05:57
Calculate UDS flux through the wall ananth_01 FLUENT 0 August 5, 2013 07:33
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 08:53


All times are GMT -4. The time now is 16:21.