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

Diagonal time-integration of single source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2020, 18:59
Default Diagonal time-integration of single source term
  #1
New Member
 
Join Date: Apr 2011
Posts: 7
Rep Power: 15
burgreen is on a distinguished road
I am trying to time-integrate only a single source term defined by:

Code:
fvScalarMatrix eqn( fvm::ddt(x) == -fvm::Sp(coeff, x) );
eqn.relax(); 
eqn.solve();
It is failing with this error:

Code:
[4] --> FOAM FATAL ERROR:
[4] lowerPtr_ or upperPtr_ unallocated
[4]
[4]     From function const scalarField& Foam::lduMatrix::lower() const
[4]     in file matrices/lduMatrix/lduMatrix/lduMatrix.C at line 271.
[4]
FOAM parallel run aborting
The solver is defined as:

Code:
"(x)"
    {
        solver          PCG;
        preconditioner  diagonal;
        tolerance       1e-8;
        relTol          0.001;
        maxIter         400;
    }
If I replace the fvm source term with the fvc operator:

Code:
fvScalarMatrix eqn( fvm::ddt(x) == -fvc::Sp(coeff, x) );
I get same error.
If I comment out the eqn.relax() and just solve, I get a different error:

Code:
Foam::error:printStack(Foam::Ostream&) at ??:?
[34] #1  Foam::sigFpe::sigHandler(int) at ??:?
Is this type of equation supported?
burgreen is offline   Reply With Quote

Old   July 22, 2020, 08:42
Default
  #2
New Member
 
Join Date: Mar 2020
Posts: 16
Rep Power: 6
Geb1313 is on a distinguished road
Hi burgreen,

Did you solve it? I got a similar problem.
Geb1313 is offline   Reply With Quote

Old   December 28, 2022, 18:15
Talking bug related problem
  #3
New Member
 
Raśl Bernal
Join Date: Mar 2018
Posts: 3
Rep Power: 8
ruloz is on a distinguished road
Quote:
Originally Posted by Geb1313 View Post
Hi burgreen,

Did you solve it? I got a similar problem.

Hi everyone, this has been discused on this post


lowerPtr_ or upperPtr_ unallocated


and hjasak says it is related with a bug in the matrix classes.


I'm working on a custom solver in OpenFOAM 10 and it works with an explicit source,
Code:
fvScalarMatrix Eqn(fvm::ddt(phi) == -source);
Eqn.relax();
Eqn.solve();
but when I addapted the solver for OpenFOAM 2212 it didn't worked, I've manage to run it as
Code:
solve (fvm::ddt(phi) == -source);
So it seems that in the Foundation version they solved the bug, and maybe a bug report for the OpenCFD Ltd version will help.
ruloz 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
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42


All times are GMT -4. The time now is 09:43.