|
[Sponsors] |
September 4, 2022, 08:33 |
Adsorption solver
|
#1 |
New Member
Luckmore Kadzungura
Join Date: Jul 2021
Posts: 12
Rep Power: 5 |
Hie foamers, i am trying to use chtMultiregionFoam to model adsorption and also using
Code:
adsorptionMassFractionFvPatchScalarField Code:
Solving for solid region solid GAMG: Solving for e, Initial residual = 0.0213801, Final residual = 0.00260509, No Iterations 1000 Min/max T:300 300 Solving for solid region adsorptwall [5] [5] [0] [0] [0] --> FOAM FATAL ERROR: [0] request for surfaceScalarField phi from objectRegistry adsorptwall failed available objects of type surfaceScalarField are 0() [0] [0] From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>] [0] in file /opt/openfoam10/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line [1] [1] [1] --> FOAM FATAL ERROR: [1] request for surfaceScalarField phi from objectRegistry adsorptwall failed available objects of type surfaceScalarField are 0() [1] [1] From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>] [1] in file /opt/openfoam10/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 211. [4] I have tried all the other fixes i have found on the forum and nothing works for me. Someone help please. for the velocity boundary condition and temperature conditions on the adsorptive wall i used Code:
specieTransferVelocityFvPatchVectorField and Code:
specieTransferTemperatureFvPatchScalarField respectively. anyone please help |
|
September 4, 2022, 08:39 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
Code:
request for surfaceScalarField phi from objectRegistry adsorptwall failed available objects of type surfaceScalarField are Btw the objectRegistry is declared in createFields.H, which for MultiregionFoam will instead call createFluidFields.H and createSolidFields.H you will find there is an IOobject for phi in createFluidFields and not in createSolidFields If your custom code requires reading from the field phi then you need to add it to createSolidFields, but you will need to make sure that phi is actually computed in solid regions elsewhere in the code. There is an entire chain of changes you must make if phi is involved in whatever it is you are trying to do. |
|
September 4, 2022, 08:49 |
|
#3 |
New Member
Luckmore Kadzungura
Join Date: Jul 2021
Posts: 12
Rep Power: 5 |
Thank you for the quick response.
I have created two solid regions and one fluid region. The adsorptwall is the monolith inside the cylinder where adsorption is taking place. I have. Have tried defining phi in the createSolidFields but that was causing even more complicated errors. I noticed that for specieTransferVelocity boundary condition, It has a function calcPhiYp which is also used in the boundary condition adsorption mass fraction and i couldnt locate that function anywhere?. I am using openFoam10 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Duplicate library entries when running a solver with custom library | francescomarra | OpenFOAM Programming & Development | 3 | May 17, 2022 09:37 |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
Divergence problem | Smaras | FLUENT | 13 | February 21, 2013 06:03 |
3d vof | Smaras | FLUENT | 2 | February 19, 2013 07:58 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |