https://linen.dev logo
Poor(ous) convergence
# les-ras
y
I don't know, I guess it could if your have some kind of unsteady flow behavior? I don't think you need to have an extremely fine porous zone, or at least it shouldn't make much difference on the porous model result as long as it's fine enough to properly capture the upstream flow How did you compute your porous model coefficients? do you use isotropic coefficients?
k
This is how it goes, each frame a 1000 iterations
Copy code
porosity1
{
    type            explicitPorositySource;
    explicitPorositySourceCoeffs
    {
        selectionMode   cellZone;
        cellZone        radiator;
        type            DarcyForchheimer;
        d               ( 1e+12 1000 1e+12 );
        f               ( 0 0 0 );
        coordinateSystem
        {
            origin          ( 0 0 0 );
            e1              ( 0.984808 0.173648 0 );
            e3              ( 0 0 1 );
        }
    }
}
'd' and 'f' are arbitrary now, we'll use Tobias Holzmann's calculator when we get measurements on actual radiator
Maybe I can initialize flow with a separate case without a porous zone, then map to this one
y
yes, this is why I was asking, I always work on stuff with radiators and we do the same (proper coefficient on the axis aligned with the radiator, and bigger values on the other 2 directions)
If I remember well you can have issues with coefficients. For instance we do something like compute the actual coefficient and multiply it by a big factor like 10 or 20 for the other directions.
k
OK, I'll try that, thanks
y
so yeah, try replacing the 1e12 by something smaller
also maybe try to set a value for the f coefficient as it is the inertial term
k
OHMYGOD
Converged in 802 iterations
that's like a 50x increase
wow, great
y
what's the cause then? big coefficient or 0 values on f?
k
IDK, I changed both using proper values
let me investigate that too
In any case, I can't thank you enough... Except maybe, with next purchase, you get a free parametric mesh 😄
y
I think I did a case with very low isotropic coefficients recently (f=0 0 0) and I didn't not notice convergence issues so I would bet on the 1e12 value on d. Let me know!
I'll remember that 😂
k
It was the high value on D, if I replace f coefficient with zeros, it's the same
y
The x20 factor usuallty is good enough to redirect the flow along the radiator direction
I guess there must be some numerical thing happening with high values
k
I'd never figure that out on my own
y
I'm glad I could help!
z
Can confirm, I've seen this same behaviour
I recommend stimulating a small section of the media resolved
And use as verification
You get different pressure drop depending on what you pick
The advice of "just pick a high value" can be incorrect
k
But theoretically, an infinitely high value should yield an impermeable wall in that direction, right? So the chosen number can be too low in the worst case
I can't imagine how this would look like, you mean like a simple square channel? I have actual measurements
z
Remind me tomorrow and I can show you an example
k
Is today tomorrow?
z
Sure is
Okay, think I deleted the plot that showed the effect, but I can do some scribbles
I was looking at using porous media to model louvres for building ventilation simulations
Modelled that scenario, sampled the pressure drop
k
Aah, I understand, simulate a piece of the domain properly, then compare with a porous model
Yep
k
Yup, I get it
thanks
z
With porous media:
But note specifically the 1000 in the F
I had to tune that
Going off my memory from quite a while ago, it would do something like that
different value gave different pressure drop
and it was quite sensitive
k
And if I have measurements of pressure drop, I don't even need the 'proper' simulation, just the porous one
z
Also, another thing to be aware of, is that the porous media doesn't do a very good job of capturing both the pressure drop and the change in direction of the flow
I was able to get a close match for the velocity, but it compromised the pressure drop
k
I see
So yeah, it's kind of a complex problem
Which is why I recommend doing a simulation of a section of the media to verify against
k
It always is, eh?
z
Yep
can never be simple haha
k
Thanks, that's very useful info, I'd never go that far
Well this particular case is a very rough approximation to start with, but then... it gets complicated 🙂
z
It might not be so bad with your case since you're using the linear component
I was using the quadratic component which probably amplifies the senstitivity to the bigger values
k
I use both, a fit against measurements
Can't imagine which real-life system would be purely linear
z
I've always had them in my head as the laminar and turbulent components - if you have laminar flow through the media is it not linear?
Like I think when you're doing groundwater transport or something like that where the Reynolds number is super low then it's pretty much purely linear
k
Of course I obviously hadn't thought of everything
How did I not remember groundwater transport
z
Only came to mind because someone asked me to look into it for a proposed job once haha
So spent an hour reading about how people use OpenFOAM to look at that
weird little niche rabbit hole to dive down
k
z
With Reynolds numbers that low it barely even feels like fluid dynamics haha
y
I would tend to think this is specific to your louvres issue. It should be fine for @kandelabr as the radiator fins basically orient the flow along the radiator thickness direction. So proper porous coefficients on this axis, and bigger values on the 2 other axis are usually good enough to properly orient the flow.
z
Yeah the direction stuff maybe
y
This being said, some radiators have louvred fins, and this is pretty tricky to measure experimentally, as there is no simple way to measure porosity on other directions
z
But sensitivity to the choice of the 'large values' for the impermeable directions might still happen
y
agreed
I'd say having reliable pressure drop measurement is the ideal case!