|
[Sponsors] |
compressibleMultiphaseInterFoam with fvOptions Mass Source |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 5, 2023, 04:35 |
compressibleMultiphaseInterFoam with fvOptions Mass Source
|
#1 |
Member
Join Date: Aug 2011
Posts: 37
Rep Power: 15 |
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 |
|
May 5, 2023, 06:10 |
|
#2 |
Member
Paul Palladium
Join Date: Jan 2016
Posts: 94
Rep Power: 10 |
Not sure to understand what you are trying to accomplish. You would like to simulate phase change ?
|
|
May 5, 2023, 06:11 |
|
#3 |
Member
Join Date: Aug 2011
Posts: 37
Rep Power: 15 |
||
May 11, 2023, 09:17 |
|
#4 |
Member
Paul Palladium
Join Date: Jan 2016
Posts: 94
Rep Power: 10 |
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. |
|
May 11, 2023, 11:43 |
|
#5 |
Member
Join Date: Aug 2011
Posts: 37
Rep Power: 15 |
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 } } } // ************************************************** *********************** // |
|
June 12, 2023, 22:26 |
|
#6 |
New Member
FOAMraj
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
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.
|
|
May 27, 2024, 15:07 |
|
#7 | |
Senior Member
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 119
Rep Power: 10 |
Quote:
|
||
September 8, 2024, 07:00 |
Hint
|
#8 |
New Member
Nicoḷ Badodi
Join Date: Mar 2020
Posts: 20
Rep Power: 6 |
Looking at the code of compressibleMultiphaseInterFoam it looks like fvOptions is not implemented into the equations. For example the equation for U is:
Code:
fvVectorMatrix UEqn ( fvm::ddt(rho, U) + fvm::div(mixture.rhoPhi(), U) + turbulence->divDevRhoReff(U) ); Code:
fvVectorMatrix UEqn ( fvm::ddt(rho, U) + fvm::div(rhoPhi, U) - fvm::Sp(contErr, U) + MRF.DDt(rho, U) + turbulence.divDevRhoReff(U) == fvOptions(rho, U) ); |
|
|
|
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 |