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

fvScalarMatrix interference with the mesh's objectRegistry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2020, 06:24
Default fvScalarMatrix interference with the mesh's objectRegistry
  #1
Member
 
Elwardi Fadeli
Join Date: Dec 2016
Location: Boumerdes, Algeria
Posts: 41
Rep Power: 9
ELwardi is on a distinguished road
Hi Foamers,


In my interface template class, I need a set of matrices (for storage porpuses only, no solving), so I went with a 'HashPtrTable<fvScalarMatrix>' as a member variable (Overkill I know, but it's nice to have dimensions checks everywhere).


The construction looks like this:
Code:
// p_ is a const ref to pressure field

    forAll(phaseNames_, pi)
    {
        matTable_.insert
        (
            phaseNames_[pi],
            new fvScalarMatrix(p_, dimVolume/dimTime)
        );
    }
The problem is, whenever I instantiate an object of the interface class, the mesh stops registering stuff to its db and I don't known why this happens.


My current solution is to create the instance as the last thing to do before starting the time loop!


Any insights into the problems are greatly appreciated
ELwardi is offline   Reply With Quote

Reply

Tags
fvmatrix, mesh, objectregistry


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
[mesh manipulation] objectRegistry error with Postprocessing Function Objects iuginio OpenFOAM Meshing & Mesh Conversion 5 June 30, 2021 04:45
Question regarding objectRegistry and related subjects. granzer OpenFOAM 0 March 21, 2020 14:01
chtMultiRegionSimpleFoam: crash on parallel run student666 OpenFOAM Running, Solving & CFD 3 April 20, 2017 12:05
update object in objectRegistry mbookin OpenFOAM Programming & Development 4 November 29, 2016 06:58
Inner product of a tensor and a vector in fvScalarMatrix gxy200992243 OpenFOAM Programming & Development 1 October 13, 2014 11:08


All times are GMT -4. The time now is 07:45.