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

[swak4Foam] sampling a time-varying dummy field on a boundary from external files

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2022, 16:33
Default sampling a time-varying dummy field on a boundary from external files
  #1
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
Hello,
On a boundary, I need to calculate U and p as a function of a dummy variable (let's call it coef). I'm able to do that thanks to groovyBC, but I have the following questions:

1. I have to introduce coef as a field variable to the patch, so that I can use it in groovyBC type expressions. I guess this can be done using swakFunctionObjects, correct?
2. However, I have the 2D distribution of coef in data files (in x,y,val format) in time series.
3. This distribution should be mapped (sampled) to the boundary by interpolating both in time (as it is in timelines) and space. groovyBC somewhat seems to be capable of doing that, however, I checked the examples and couldn't find a similar case. There were mostly expressional definitions.

Is that possible? Fields can be manipulated using other fields in expressions in groovyBC, which is great. But can I define a dummy field on a patch, and then distribute it on the patch by interpolating over both time and space, which will ultimately allow me to use it in groovyBC expressions?

I have also checked funkySetBoundaryFields but no luck.

Any advice you could give would be much appreciated.
Best regards.
hconel is offline   Reply With Quote

Old   March 7, 2022, 03:36
Default
  #2
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
The OpenFOAM native timeVaryingMappedFixedValue type seems to be the best solution for creating such a field. But as far as I can tell, this type can only map values from an offset surface within the domain; not from an external source. Moreover, there is no temporal interpolation. timeVarying, in that sense, means that the values are updated at each time step. So, it would not work.
I'll keep looking.
hconel is offline   Reply With Quote

Reply


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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


All times are GMT -4. The time now is 18:15.