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/)
-   -   compressibleMultiphaseInterFoam with fvOptions Mass Source (https://www.cfd-online.com/Forums/openfoam-solving/249730-compressiblemultiphaseinterfoam-fvoptions-mass-source.html)

Kojote May 5, 2023 03:35

compressibleMultiphaseInterFoam with fvOptions Mass Source
 
Hi,

i am struggeling to add some material via fvOptions. Did anyone here manage to add mass e.g. over a cellZone?

Thanks for helping me on that one.

Br

Christian

Fauster May 5, 2023 05:10

Not sure to understand what you are trying to accomplish. You would like to simulate phase change ?

Kojote May 5, 2023 05:11

Quote:

Originally Posted by Fauster (Post 849737)
Not sure to understand what you are trying to accomplish. You would like to simulate phase change ?

No i want to have a meshless inlet on a certain point.

Fauster May 11, 2023 08:17

You want to have a "boundary condition" on a certain point on your mesh for defining velocity, alpha, temperature etc.. ?

I dont think it's possible to do that on OpenFOAM. fvOptions class allows you to have source terms. For Momentum equation you will be able to define an acceleration source but this is not what you want to do. For energy it will be power source and so on.

Kojote May 11, 2023 10:43

Hi

thanks for the replay. I found code like this -->

Mass source sounds like what i want to do.

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

injector1
{
timeStart 0.1;
duration 5;
selectionMode points;
points
(
(0.075 0.2 0.05)
);
}

options
{
massSource1
{
type scalarSemiImplicitSource;

$injector1;

volumeMode absolute;
injectionRateSuSp
{
thermo:rho.air (1e-3 0); // kg/s
}
}

momentumSource1
{
type vectorSemiImplicitSource;

$injector1;

volumeMode absolute;
injectionRateSuSp
{
U.air ((0 -1e-2 0) 0); // kg*m/s^2
}
}

energySource1
{
type scalarSemiImplicitSource;

$injector1;

volumeMode absolute;
injectionRateSuSp
{
e.air (500 0); // kg*m^2/s^3
}
}
}


// ************************************************** *********************** //

BIRAJ June 12, 2023 21:26

Hello, for this you have to mention the region in the topoSet and introduce the source term in fvOption mentioning the same region you mentioned in the topoSet.


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