|
[Sponsors] |
Issue with Defining Slice Sub-Region for fieldAverage Function |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 12, 2023, 15:18 |
Issue with Defining Slice Sub-Region for fieldAverage Function
|
#1 |
New Member
Julio
Join Date: Aug 2023
Posts: 1
Rep Power: 0 |
Hello,
I'm encountering an issue while trying to define a slice sub-region for the fieldAverage function in OpenFOAM. I've followed the documentation closely but keep encountering an error message. I'm hoping someone can provide insights into what might be going wrong. Problem Description: I'm attempting to use the fieldAverage function in OpenFOAM to calculate field averages within a specific slice sub-region. Here's the configuration I've used in my system/controlDict file: Code:
fieldAverage { type fieldAverage; libs ("libfieldFunctionObjects.so"); enabled true; writeControl timeStep; writeInterval 20; subRegion samples.yNormal; fields ( U { mean on; prime2Mean on; base time; } p { mean on; prime2Mean on; base time; } ); } Code:
samples { type surfaces; libs (sampling); //${_visualization}; fields (p U); surfaceFormat vtk; verbose false; writeControl timeStep; writeInterval 20; interpolationScheme cellPoint; surfaces { yNormal { type cuttingPlane; planeType pointAndNormal; interpolate true; store true; pointAndNormalDict { point (0 0 0); normal (0 1 0); } } } } Issue: Upon running the simulation, I receive an error message indicating that the subRegion "slice" cannot be located. I'm wondering if there's something I might be missing or misunderstanding in the setup. --> FOAM Warning : From virtual const Foam:: objectRegistry& Foam::functionObjects::regionFunctionObject:: obr() const in file db/functionObjects/regionFunctionObject/regionFunctionObject.C at line 63 Could not locate subRegion "slice" |
|
Tags |
fieldaverage, slice, subregion |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
[blockMesh] Errors during blockMesh meshing | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 51 | May 30, 2016 11:51 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |