CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Scalar transport function object (https://www.cfd-online.com/Forums/openfoam-solving/169650-scalar-transport-function-object.html)

vetri1689 April 15, 2016 01:36

Scalar transport function object
 
Has anybody used scalartransport object. if so briefly summarize here how to use it. and also explain how to monitor the concentration of tracer by scalartransport function. which file exactly gives the concentration of tracer at a particular location in domain?

tomf April 18, 2016 05:36

I think you should start working on the searching skills. For the scalarTransport, please have a look at this post:

http://www.cfd-online.com/Forums/ope...tml#post521181

For monitoring look for probes in the forum/tutorials.

Regards,
Tom

vetri1689 April 23, 2016 03:11

for diff boundary condition
 
Hi tom
i got it after spending so much time. and its working well with the previously defined mass flow inlet boundary condition. but i wanted to initiate from the free surface boundary as a tracer(dye).
looking forward your reply.

tomf April 24, 2016 08:06

I copied this from the private message you sent hoping that more people may read this.

Quote:

i am modelling a multiphase simulation with buoyancy dominated flow. both the phases(Argon gas and steel) are immiscible. i want to find out the dye concentracentration at one point for which i am using probe. but the problem i am facing is that the initialization of dye is not happening at the free surface(top surface of the reactor) where gas is blown from the bottom of the reactor.
From this I have no idea how to help you. Please explain your problem clearly. Maybe make a sketch of what you are seeing and what you want to see.

Regards,
Tom

vetri1689 April 25, 2016 02:20

Image attached
 
Hi tom
have a look on uploaded image.
top layer is mentioned as free surface boundary condition. in the same plane i want to initiate a trace for some time. how to do it in openfoam and give some idea.

tomf April 25, 2016 03:26

Hi,

I see no image...

Regards,
Tom

vetri1689 April 25, 2016 03:37

Image attached
 
1 Attachment(s)
image attached

vetri1689 April 25, 2016 03:49

Hi tom i hope you got it.

tomf April 25, 2016 04:15

Hi,

Ok in that case, something like this may work, where you have to modify the points for the location where you want to inject the dye and the rate of injection. I am not sure about the time part of your request. It may work to run the solver until time = 5 seconds, stop the simulation, make the fvOptions part below empty and continue the run.

Code:

functions
{
    Tracer
    {
        type    scalarTransport;
        functionObjectLibs ("libutilityFunctionObjects.so");
        outputControl  outputTime;
        active          true;
        autoSchemes    false;
        nCorr          1; // number of non-orthogonal correctors
        resetOnStartUp  false;
        fvOptions
        {
            Tracer
            {
                type        scalarExplicitSetValue;
                active      true;
                scalarExplicitSetValueCoeffs
                {
                    selectionMode      points;
                    points    (
                                  (1.3 0.628 1.145)
                                  (1.2 0.628 1.145)
                                  );
                    injectionRate
                    {
                        Tracer        1;
                    }
                }
            }
      }
  }
}



All times are GMT -4. The time now is 19:18.