CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to use inputValueMapper

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Laurence Wallian

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 25, 2023, 08:35
Default How to use inputValueMapper
  #1
Senior Member
 
Join Date: Dec 2021
Posts: 209
Rep Power: 5
Alczem is on a distinguished road
Hey everyone!


I am trying to set up a simulation with a cold wall and a hot wall in a square cavity. The hot wall temperature would be regulated by the cold wall temperature (where a negative flux is applied). For that, I saw that OpenFoam v2112 had inputValueMapper to create dependent boundary conditions :


https://www.linkedin.com/pulse/new-f...bias-holzmann/


My hot wall boundary condition looks like this:


Code:
hot_wall
    {
        type    uniformFixedValue;

        value
        {
            type            inputValueMapper;                                  
            mode            function;                                          
            
            function                                                           
            {
                // Here we retrieve data from another FO (its the x-value)
                type                 functionObjectValue;   

                // The name of the FO                               
                functionObject       averageSurfaceTemperature;

                // The result used for x         
                functionObjectResult average(cold_wall,T);
                         
                defaultValue         200;
            };                                                                  
            
            
            value                                                              
            {                                                                  
                type            table;                                         
                values
                (
                    (273.15  293.15)
                    (283.15  283.15)
                );
            };                                                                   
        }
    }
So my hope was that the hot wall would be between 283.15 and 293.15 Kelvins depending on how cold the other wall gets.


But I get this error:


Code:
--> FOAM FATAL IO ERROR: (openfoam-2112 patch=220610)
Missing or invalid PatchFunction1 entry: uniformValue


file: 0/T.boundaryField.hot_wall at line 50 to 80.

    From static Foam::autoPtr<Foam::PatchFunction1<Type> > Foam::PatchFunction1<Type>::New(const Foam::polyPatch&, const Foam::word&, const Foam::entry*, const Foam::dictionary&, bool, bool) [with Type = double]
    in file /builddir/build/BUILD/OpenFOAM-v2112/src/meshTools/lnInclude/PatchFunction1New.C at line 124.

FOAM exiting

I haven't found any resource about this inputValuemapper that looks quite powerful, other than the link I shared. Can anyone help me on this, or provide some information? Thanks for the help!


Cheers
Alczem is offline   Reply With Quote

 


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



All times are GMT -4. The time now is 01:12.