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

timeVaryingMappedFixedValue for circular sections

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ishan_ae

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2023, 13:29
Default timeVaryingMappedFixedValue for circular sections
  #1
Member
 
ishan
Join Date: Oct 2017
Posts: 77
Rep Power: 8
ishan_ae is on a distinguished road
I am trying to set up a case where the input to inlet is taken from a previously run simulation. I want to set this up using the timeVaryingMappedFixedValue boundary condition.

I have ran some tests where the mapping data was sampled from a quad shaped surface. When the surface where the data to be mapped is also quad shaped, the BC seems to work.

However, if the surface from where the mapping data has been sampled is circular and, the surface where the data has to be mapped is also circular it is an issue. I immediately get these errors using mapMethod of nearest as well as planar:

Code:
--> FOAM FATAL ERROR: (openfoam-2212)
Did not find a corresponding sourcePoint for every face centre

--> FOAM FATAL ERROR: (openfoam-2212)
Need at least 3 non-collinear points for planar interpolation, but only had 0 points
Reference image:https://imagebin.ca/v/7ZvEfb7oE755

If you see my image, the target and source surfaces are the same dimensions and their axial locations are also the same.

These are the surface sampling settings from the pre-cursor simulation:
Code:
 
       type            surfaces;
        surfaceFormat   boundaryData;
        formatOptions
        {
            ////Optionally specify write options
            boundaryData
            {
                header      true;       // write as OpenFOAM object
                format      ascii;     // write binary or ascii
               compression false;      // compress after writing
            }
        }
        writeControl    writeTime;
        interpolationScheme cell;
        fields
        (
            U
            turbulenceProperties:R
            turbulenceProperties:L
        );
        surfaces
        {
            inlet
            {
                type            patch;
                patches         (INLET);
                interpolate     false;
            }
        }
This is the timeVaryingMappedFixedValue definition in my U file:
Code:
        type            timeVaryingMappedFixedValue;
        offset          (0 0 0);
        setAverage      off;
		mapMethod 		nearest;
The data files that are generated seem to be ok that is, the number of data entries and number of sampling locations match.

Can someone please suggest where I am going wrong ?
ishan_ae is offline   Reply With Quote

Old   September 10, 2023, 14:55
Default
  #2
Member
 
ishan
Join Date: Oct 2017
Posts: 77
Rep Power: 8
ishan_ae is on a distinguished road
I was able to sort this problem.

The patch from where I was sourcing the data and, the target patch where the data needs to be mapped where named differently. Once, I changed the name of the folder to the target patch's in target_case/constant/boundaryData/targetPatch I was able to sort out this issue.
allanZHONG likes this.
ishan_ae is offline   Reply With Quote

Reply

Tags
timevaryingfixedmapped, timevaryingmappedfixedval

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how do you document your complicated sections of code? aerosayan Main CFD Forum 7 February 14, 2022 03:40
Is it possible for the two blade sections to experience the same angle of attack? mazhar16823 Main CFD Forum 11 September 17, 2020 13:32
one report for several plane sections Newsim STAR-CCM+ 1 July 6, 2020 22:24
[ANSYS Meshing] Transition between two hex sections with different cell density krihamm ANSYS Meshing & Geometry 0 February 22, 2018 03:15
Sections / Topics in CFD Wiki Roberthealy1 CFD-Wiki 6 August 23, 2007 17:58


All times are GMT -4. The time now is 08:10.