No way to set a valid temperature profile for Lagrangian boundary zone

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
nikitin-pro
Posts: 2
Joined: Sun Apr 18, 2021 2:34 pm

No way to set a valid temperature profile for Lagrangian boundary zone

Post by nikitin-pro »

Saturne 6.0 from Ubuntu 20.04 repositories.
For a homogeneous Eulerian VoF flow with droplet evaporation (by Merkel model) I'm trying to set Lagrangian BC's. Namely spray inlet and have some problems:
(1) By default there are 10 zones, that hold even if I set them to unity. I solved it by eliminating redundant sets one-by-one.
(2) Fluid temperature and density in GUI are being cleared out after each run, although being saved in XML.

As a result, I suppose I got the following problem:
(3) cs_lagr_injection.c:369: Fatal error. Lagrangian boundary zone 3, set 0 temperature profile value (0) is invalid.

This error holds even when I set this BC with custom subroutine.
Attachments
listing.txt
(21.69 KiB) Downloaded 123 times
setup.xml
(13.33 KiB) Downloaded 101 times
Mesh_1.med
(5.62 MiB) Downloaded 104 times
Yvan Fournier
Posts: 4079
Joined: Mon Feb 20, 2012 3:25 pm

Re: No way to set a valid temperature profile for Lagrangian boundary zone

Post by Yvan Fournier »

Hello,

It seems there was both a GUI bug and a bug in the Lagrangian injection with fluid temperature profile (this combination is missed by the coverage in the validation test suite, and seems not to have been used much recently as you are the first to report the issue).

The fix will be in v6.0.7 (to be released in a few weeks at most), and in the Git repository tomorrow. I also attach a patch or the corrected files here.

With the fix, I get another error at the second time step, but this seems related to the Eulerian BC's which might be tricky with the Merkle model (with which I am not too familiar).

Best regards,

Yvan
Attachments
0001-Lagangian-model-fix-crashes-GUI-and-code-with-fluid-.patch.txt
(7.17 KiB) Downloaded 103 times
nikitin-pro
Posts: 2
Joined: Sun Apr 18, 2021 2:34 pm

Re: No way to set a valid temperature profile for Lagrangian boundary zone

Post by nikitin-pro »

thanks!!
Post Reply