|
[Sponsors] |
phaseScalarTransport access through interFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 15, 2023, 10:10 |
phaseScalarTransport access through interFoam
|
#1 |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
Hi!
I need to solve scalar transport that is confined to a specific phase (interFoam). There are many threads on the topic and it seems that phaseScalarTransport is the way to go. However, I would like to manipulate the scalar at each time-step. Is it possible to do in an efficient way (either through direct manipulation or through source terms)? |
|
June 20, 2023, 17:56 |
|
#2 |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
Even though ESI OpenFOAM has not implemented phaseScalarTransport, it seems I have more luck there, shaking down what little documentation there is about codedSource. I can probably accept going for their scalarTransport implementation if I can modify the scalar field.
So for OpenFOAM2206 the following works (prints text) with simpleFoam, but it does not work with interFoam Code:
scalarCodedSource { type scalarCodedSource; selectionMode all; fields (k); name sourceTime; codeAddSup #{ #}; codeCorrect #{ Info << "Some pointless text ******************" << endl; #}; codeConstrain #{ // empty block #}; } Code:
--> FOAM FATAL ERROR: (openfoam-2206) Not implemented |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ridiculous results with phaseScalarTransport in interFoam | ThomasLong | OpenFOAM Running, Solving & CFD | 5 | January 10, 2023 09:31 |
New phaseScalarTransport function object for a single phase in interFoam | rasool_soofi | OpenFOAM Running, Solving & CFD | 2 | May 26, 2021 07:31 |
phaseScalarTransport and interFoam | Ununul | OpenFOAM Post-Processing | 1 | March 6, 2021 12:30 |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 15:26 |
k-e & GAMG interFoam Schemitisation Stability Issue | JFM | OpenFOAM Running, Solving & CFD | 3 | December 1, 2015 05:58 |