|
[Sponsors] |
[swak4Foam] sampling a time-varying dummy field on a boundary from external files |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 40
Rep Power: 6 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 40
Rep Power: 6 ![]() |
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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 39 | July 1, 2020 09:13 |
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 |