|
[Sponsors] |
fvScalarMatrix interference with the mesh's objectRegistry |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 30, 2020, 06:24 |
fvScalarMatrix interference with the mesh's objectRegistry
|
#1 |
Member
Elwardi Fadeli
Join Date: Dec 2016
Location: Boumerdes, Algeria
Posts: 41
Rep Power: 9 |
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) ); } 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 |
|
Tags |
fvmatrix, mesh, objectregistry |
|
|
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 |