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/)
-   -   acousticDampingSource (https://www.cfd-online.com/Forums/openfoam-solving/226136-acousticdampingsource.html)

spalartallmaras April 18, 2020 08:22

acousticDampingSource
 
Hello,

1. does anybody know how selectionMode with cellZone work?

with this fvOptions there is always same error message:

[0] --> FOAM FATAL ERROR:
[0] Cannot find cellZone selectedCells
Valid cellZones are 0()


2. or are there another selectionMode, except of "all;"?
-> I saw a tutorial used selectionMode all; but I think it does not make any sense, cuz all of cells are damped.
https://develop.openfoam.com/Develop...stem/fvOptions

3. what does duration 1000; mean?

Code:

acousticDampingSource
{
    type                acousticDampingSource;
    active              yes;
       
    timeStart          0.15001;
    duration            1000.0;
    selectionMode      cellZone;
    cellZone            selectedCells;

    centre              (0 0.04 0);
    radius1            2.0;
    radius2            4.0;
    frequency          3000; //1e+07;
    //w                    3;
    URef                UMean;
}


HPE April 18, 2020 08:41

1. you need to create a cellZone first by using topoSet.

2. options are, afaik: all, cellZone, cellSet (at the moment, you need to specify `selectionMode all` if you wanna use `all` mode, as `selectionMode` is a mandatory entry - but may be in the future, it can become an optional entry, don't know).

3. duration = until what time you want function object being executed. e.g. if your simulation endTime=100, and duration=50, the execution of this FO will cease after 50, but your simulation will keep going.


All times are GMT -4. The time now is 13:10.