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

timeVaryingMappedFixedValue for time-dependant "points" file lookup - dynamic meshes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2023, 08:30
Question timeVaryingMappedFixedValue for time-dependant "points" file lookup - dynamic meshes
  #1
New Member
 
Join Date: Feb 2023
Posts: 4
Rep Power: 3
standingVortex is on a distinguished road
Hello foamers,

As far I know, OpenFOAM v2212 I am using has a great degree of flexibility in specifying the time-varying BC through the timeVaryingMappedFixedValue BC. Essentially, it allows to perform the 1:1 mapping of a specified location-value pair defined by the following case structure:

<rootCase>/constant/boundaryData/<patchName>:
--> points
--> <time>/<field>

It should also allow the interpolation of these values in space and time through the PatchFunction1 capabilities.
However, according to my understanding, the current implementation is still limited to the mapping of the same set of location points. What I am saying is that the current implementation does not allow for reading different sets of points for every single time step, and is therefore not capable of mapping the dynamically moving patches (e.g. in dynamic meshes).

But as I have the moving inlet case, and would like to perform the LES simulation (by feeding the turbulent structures in my simulation generated by a separate precursor simulation), the modified version of the timeVaryingMappedFixedValue BC seems to be the reasonable approach.

What I would like to operate on is the case structure like this:

<rootCase>/constant/boundaryData/<patchName>:
--> <time>/<field>
--> <time>/points

I have done some BC modifications in the past without any problems, but these BCs were rather simple. The timeVaryingMappedFixedValue seems a bit more challenging to modify. Based on my understanding, it seems like the MappedFile.C of the PatchFunction1 has to be modified to allow reading points file every single timestep, and from the new path. Since everything became heavily templated recently to facilitate easier code maintenance, it also became bit more challenging for non-expert C++ user like me to navigate around. Not sure if there is anything else required...

I would really appreciate if experienced users could shed some light and provide the foam wisdom on this topic and confirm if I am indeed on the right track.

Thank you very much.
standingVortex is online now   Reply With Quote

Old   March 21, 2023, 16:24
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
The coding with templating is obviously one thing, but handling moving input data points will also be a bit costly. Inside of the Mapped function, a delaunay triangulation is performed for the cloud of input points. This is used to determine interpolation weights for mapping input values (at the those points) to the patch face centres. This triangulation is not the cheapest.
olesen is offline   Reply With Quote

Reply

Tags
boundarydata files, patchfunction1, points data file, timevaryingmapped bc


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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 17:47.