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

phaseScalarTransport access through interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2023, 10:10
Default phaseScalarTransport access through interFoam
  #1
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 546
Rep Power: 15
Simbelmynė is on a distinguished road
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)?
Simbelmynė is offline   Reply With Quote

Old   June 20, 2023, 17:56
Default
  #2
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 546
Rep Power: 15
Simbelmynė is on a distinguished road
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
    #};


}
it casts the following error:

Code:
--> FOAM FATAL ERROR: (openfoam-2206)
Not implemented
Is it not compatible with multiphase flows or is it due to some other reason?
Simbelmynė is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 15:51.