Page 1 of 1

Use of passive scalar

Posted: Tue Nov 19, 2019 4:39 pm
by Cbarnaud
Hello team,

my CS version is 5.0 and I use the GUI.
I have a volume with three inlets and I would like to put a passive scalar in each inlet to see how the mixing is operating.
Just like a dye in water.
I tried to create a volume around each inlet to create a source for the passive scalar in "volume region definition" by a zone "scalar source term". The scalar is 0 everywhere except in the "source term zone".

My problem is (in error file) :


cs_gui.c:3637: Fatal error.

Error: can not find the required symbol: lambda



Call stack:
1: 0x2aeb7d32e7e8 <uitssc_+0xa38> (libsaturne.so.5)
2: 0x2aeb7cc340ec <covofi_+0x117fc> (libsaturne.so.5)
3: 0x2aeb7cdc13c7 <scalai_+0xfc7> (libsaturne.so.5)
4: 0x2aeb7cdd8b1c <tridim_+0x9d1c> (libsaturne.so.5)
5: 0x2aeb7cbb7873 <caltri_+0x1da3> (libsaturne.so.5)
6: 0x2aeb7cb84683 <cs_run+0x473> (libsaturne.so.5)
7: 0x2aeb7cb841eb <main+0x24b> (libsaturne.so.5)
8: 0x2aeb87beb495 <__libc_start_main+0xf5> (libc.so.6)
9: 0x401329 <> (cs_solver)
End of stack

application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
In: PMI_Abort(1, application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0)
~


So I don't know what is this lambda and where does this problem come from.
It appears only when I add a zone "scalar source term".
I joined my setup file here.

Thanks a lot.
Camille B.

Re: Use of passive scalar

Posted: Tue Nov 19, 2019 5:40 pm
by Luciano Garelli
Hello,

This error is strange because in the subroutine uitssc the lambda coefficient is used for groundwater flows.

Another way to track the scalars is set an inlet value for each scalar and the track the evolution. Using this way you avoid the use of the source term.

Regards,

Luciano

Re: Use of passive scalar

Posted: Tue Nov 19, 2019 6:50 pm
by Cbarnaud
Hello Luciano,

Thank you for your answer. I thought it was weird, you confirm my intuition.
By "set an inlet value for each scalar and the track the evolution", you mean create the scalars, initialize them to 0 everywhere, and add scalar1=1.0 at the inlet boundary condition?

Regards,
Camille

Re: Use of passive scalar

Posted: Tue Nov 19, 2019 7:00 pm
by Luciano Garelli
Hello,

Yes, set a prefixed (Dirichlet) value for the scalars at the fluid inlets (in the boundary condition tab). Additionally you can set different scalar for the different inlets.

Regards,

Luciano