CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

compressibleMultiphaseInterFoam with fvOptions Mass Source

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2023, 04:35
Default compressibleMultiphaseInterFoam with fvOptions Mass Source
  #1
Member
 
Join Date: Aug 2011
Posts: 37
Rep Power: 14
Kojote is on a distinguished road
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
Kojote is offline   Reply With Quote

Old   May 5, 2023, 06:10
Default
  #2
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 93
Rep Power: 10
Fauster is on a distinguished road
Not sure to understand what you are trying to accomplish. You would like to simulate phase change ?
Fauster is offline   Reply With Quote

Old   May 5, 2023, 06:11
Default
  #3
Member
 
Join Date: Aug 2011
Posts: 37
Rep Power: 14
Kojote is on a distinguished road
Quote:
Originally Posted by Fauster View Post
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.
Kojote is offline   Reply With Quote

Old   May 11, 2023, 09:17
Default
  #4
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 93
Rep Power: 10
Fauster is on a distinguished road
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.
Fauster is offline   Reply With Quote

Old   May 11, 2023, 11:43
Default
  #5
Member
 
Join Date: Aug 2011
Posts: 37
Rep Power: 14
Kojote is on a distinguished road
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
}
}
}


// ************************************************** *********************** //
Kojote is offline   Reply With Quote

Old   June 12, 2023, 22:26
Default
  #6
New Member
 
FOAMraj
Join Date: Apr 2021
Posts: 19
Rep Power: 4
BIRAJ is on a distinguished road
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.
BIRAJ is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 16:14
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 14:42.