|
[Sponsors] | |||||
Strongly negative scalarSemiImplicitSource causing divergent behavior |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Martin Marone
Join Date: Oct 2023
Posts: 5
Rep Power: 4 ![]() |
Hello everyone!
I am trying to implement a personalized solver in openFoam in order to solve the transport of chemical species, and I am having some trouble to model a simple "cleaning" sink term on my equations. I based my model on what I would have done for an idealized heat-exchanger (since I am treating this chemical species as a volScalarField an therfore it is analog to the T field), so I am using a scalarSemiImplicitSource defined through the constant/fvOptions file as follows: Code:
myElementSink
{
type scalarSemiImplicitSource;
active true;
selectionModecell Zone;
cellZone hx;
volumeMode specific;
injectionRateSuSp
{
myElement (0 -0.4);
}
}
Just in case, the equation that I am solving with my solver looks like this: Code:
fvScalarMatrix myEq
(
fvm::ddt(myElement)
+ fvm::div(phi, myElement)
- fvm::laplacian(diffCoeff, myElement)
==
+ myExplicitSource
+ fvOptions(myElement)
);
myEq.relax(RELAX_FACTOR);
fvOptions.constrain(myEq);
initResidual += myEq.solve().initialResidual();
fvOptions.correct(myElement);
myElement.correctBoundaryConditions();
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Martin Marone
Join Date: Oct 2023
Posts: 5
Rep Power: 4 ![]() |
Ok, so I did not find a "detailed" solution for this but I ended up working with much higher relaxation (even bellow 0.4 in some cases) to get the simulations through.
|
|
|
|
|
|
![]() |
| Tags |
| divergence, fvoptions, scalarsemiimplicitsource, sink term, volscalarfield |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
| [blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
| [blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
| [blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
| [blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |