|
[Sponsors] |
No difference in solver behaviour with implicit source term |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 9, 2017, 05:16 |
No difference in solver behaviour with implicit source term
|
#1 |
New Member
Dan
Join Date: Sep 2016
Posts: 20
Rep Power: 10 |
Hi,
my old solver works like this: Code:
while (simple.correctNonOrthogonal()) { fvScalarMatrix TEqn ( fvm::ddt(T) + fvm::div(phi, T) - fvm::laplacian(DM, T) - T0/T1 +T/T1 == fvOptions(T) ); So I changed my solver to this: Code:
while (simple.correctNonOrthogonal()) { fvScalarMatrix MzEqn ( fvm::ddt(T) + fvm::div(phi, T) - fvm::laplacian(DM, T) - T0/T1 + fvm::Sp(1/T1,T) == fvOptions(T) ); Edit: I would like to add, that the problem is, that my scalar T should be bounded. I have a pipe and at the inlet I have a constant value of T=1, but my solver tends to go to 1.1 in the beginning of the pipe, which is not realistic. My thought was, that part of the problem is my source term. I found out that when I us "bounded Gauss linearUpwind grad(T)" there is no problem. But I think it's no good idea to use the bounded scheme for transient solution? Best Regards, Gesetzt |
|
December 10, 2017, 07:14 |
|
#2 |
New Member
Dan
Join Date: Sep 2016
Posts: 20
Rep Power: 10 |
Hi,
I want to give information about my fvSchemes file also: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default Euler; } gradSchemes { default cellLimited Gauss linear 1; } divSchemes { default none; div(phi,T) Gauss linearUpwind grad(T); //div(phi,T) Gauss banana; //div(phi,T) Gauss QUICK; //div(phi,T) Gauss limitedLinear 0.5; } laplacianSchemes { default none; laplacian(DM,T) Gauss linear corrected; //laplacian(DM,T) Gauss linear limited 1; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } fluxRequired { default no; T ; } // ************************************************************************* // I tried different schemes, but the problem continues. Can anybody give me advice? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
adding scalar source term in scalarTransportFoam solver | fluidflowsteel | OpenFOAM | 1 | July 25, 2016 22:58 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |