|
[Sponsors] |
January 25, 2023, 08:35 |
How to use inputValueMapper
|
#1 |
Senior Member
Join Date: Dec 2021
Posts: 209
Rep Power: 5 |
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) ); }; } } 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 |
|
|
|