View Issue Details

IDProjectCategoryView StatusLast Update
0003997OpenFOAMBugpublic2023-07-20 10:52
Reporteralejandro.lopez Assigned Tohenry  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOSUbuntuOS Version22.04 LTS
Product Version10 
Fixed in Version11 
Summary0003997: fvModels momentumSource not updating in transient simulations with denseParticleFoam
DescriptionWhen using momentumSource in fvModels and running a steady state simulation with simpleFoam, it updates fine and the momentum is kept constant.
However, when that same momentumSource is set in the denseParticleFoam solver, although available, it does not update. It seems the fvModels source is not considered un UcEqn.H. The initial velocity mapped from the steady state simulation is lost as time progresses and tends to zero.
Steps To ReproduceSet up a periodic pipe simulation with denseParticleFoam and set an initial velocity for the field. Include a momentumSource through fvModels in an attempt to keep that velocity and you will notice the velocity will tend to zero.
Additional InformationI have modified the code in UcEqn.H to look like this, recompiled a new solver and it now seems to work.
fvVectorMatrix UcEqn
(
    fvm::ddt(alphac, Uc) + fvm::div(alphaPhic, Uc)
  - fvm::Sp(fvc::ddt(alphac) + fvc::div(alphaPhic), Uc)
  + continuousPhaseTurbulence->divDevTau(Uc)
 ==
    (1.0/rhoc)*cloudSU
  + fvModels.source(alphac, Uc)
);


The addition is + fvModels.source(alphac, Uc)
I am not sure if I am missing something else.
It would help a lot if you could update or clarify.
The case I have is slightly big to be uploades here but happy to share it with you if needed.
TagsNo tags attached.

Activities

henry

2023-07-20 08:27

manager   ~0013078

Try the incompressibleDenseParticleFluid solver module in OpenFOAM-11 and OpenFOAM-dev which supersedes denseParticleFoam with many improvements including support for fvModels.

alejandro.lopez

2023-07-20 10:31

reporter   ~0013079

Thanks for your quick reply, Henry, I will give it a try asap.. For the time being however, I have openfoam 10 painfully installed in a HPC so it would help a lot if I could at least confirm that the inclussion of that term is correct and that I missed nothing else.
Regarding version 11 it seems the source structure has changed quite a bit so I expect the cases from the previous version wont run without making some changes. Is that correct?

henry

2023-07-20 10:52

manager   ~0013080

I do not have a suitable test-case to test your proposed change and you did not provide one.
I don't know what changes might be needed to your case to get it to run in OpenFOAM-11, either way you should make them as the new algorithm for the dense particle drag on the continuous phase is significantly better.

henry

2023-07-20 10:52

manager   ~0013081

Already fixed in OpenFOAM-11 and OpenFOAM-dev.

Issue History

Date Modified Username Field Change
2023-07-20 00:33 alejandro.lopez New Issue
2023-07-20 08:27 henry Note Added: 0013078
2023-07-20 10:31 alejandro.lopez Note Added: 0013079
2023-07-20 10:52 henry Note Added: 0013080
2023-07-20 10:52 henry Assigned To => henry
2023-07-20 10:52 henry Status new => closed
2023-07-20 10:52 henry Resolution open => no change required
2023-07-20 10:52 henry Fixed in Version => 11
2023-07-20 10:52 henry Note Added: 0013081