|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Mar 2015
Posts: 10
Rep Power: 12 ![]() |
Hi all,
I would like to introduce a mass source in the fluid part of chtMultiRegionFoam. My first try was to introduce a semiImplicitSouce: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // scalarSource { type scalarSemiImplicitSource; duration 1000.0; selectionMode all; volumeMode absolute; injectionRateSuSp { rho (-0.1 0); } } It is possible to change other fields (energy,...) with this kind of source, but I am interested in changing the masses. Please could you give me a hint what's going wrong and how can I change rho in chtMultiRegionFoam? Thanks a lot, J. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2015
Posts: 10
Rep Power: 12 ![]() |
Did somebody have an answer to my question?
|
|
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2015
Posts: 10
Rep Power: 12 ![]() |
Okay, I solved the problem. The bug (or missing feature) was that there is no fvOptions-term in the pressure equation of chtMultiRegionFoam. With adding this missing term my fvOptions mass term works fine. Here is our code fix:
Code:
fvScalarMatrix p_rghEqn
(
p_rghEqnComp + p_rghEqnIncomp
==
+ fvOptions(psi, p_rgh, rho.name())
);
|
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 23 ![]() |
Included in OpenFOAM-dev branch with https://bugs.openfoam.org/view.php?id=3146
|
|
|
|
|
|
![]() |
| Tags |
| chtmultiregionfoam, mass source term |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
| [foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
| what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
| [Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
| [swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |