CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Adsorption solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2022, 07:33
Default Adsorption solver
  #1
New Member
 
Luckmore Kadzungura
Join Date: Jul 2021
Posts: 12
Rep Power: 4
Lucky is on a distinguished road
Hie foamers, i am trying to use chtMultiregionFoam to model adsorption and also using
Code:
adsorptionMassFractionFvPatchScalarField
for the adsorptive wall boundary condition. I am however facing getting the following error when i run my case.


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
Lucky is offline   Reply With Quote

Old   September 4, 2022, 07:39
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Code:
    request for surfaceScalarField phi from objectRegistry adsorptwall failed
  available objects of type surfaceScalarField are
The error is it is looking for the phi field and cannot find it in the list of available fields. And it shouldn't because ordinarily the velocity on the boundary is zero and there is no mass flux. What have you done to the solver?


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.
LuckyTran is offline   Reply With Quote

Old   September 4, 2022, 07:49
Default
  #3
New Member
 
Luckmore Kadzungura
Join Date: Jul 2021
Posts: 12
Rep Power: 4
Lucky is on a distinguished road
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
Lucky 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
Duplicate library entries when running a solver with custom library francescomarra OpenFOAM Programming & Development 3 May 17, 2022 08:37
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Divergence problem Smaras FLUENT 13 February 21, 2013 05:03
3d vof Smaras FLUENT 2 February 19, 2013 06:58
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 16:12.