|
[Sponsors] |
Reading the boundary condition from a file and interpolating it on a cylinder |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 15, 2022, 11:35 |
Reading the boundary condition from a file and interpolating it on a cylinder
|
#1 |
New Member
Roozbeh Salajeghe
Join Date: Feb 2020
Location: DTU_ Denmark
Posts: 2
Rep Power: 0 |
Hi foamers,
I have a cylinder filled with a fluid partly illuminated by a projector (see the attached schematic). A cylindrical domain and an intensity field are defined to simulate the process. The boundary condition for the intensity field should be made based on the images that the projector produces, and the images change over time. So, the images should be interpolated on part of the circumferential boundary mesh of the cylinder, and they should be updated every few time steps. I have created the necessary text files from the images containing the intensity as a function of coordinates and time so that they can be easily read by OpenFOAM. I have found that timeVaryingMappedFixedValue may do what I need. However, this boundary condition type uses the MappedFile class which is, in turn, inherited from the pointToPointPlanarInterpolation class that basically works for planar surfaces. It seems that it does not work for my curved (non-planar) boundary. Do you have any idea of how I can make this boundary condition work for my case? Or do you know any other functionality in OpenFOAM that can help me cope with this problem? Any help is appreciated. /Roozbeh |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" | bigphil | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 686 | December 22, 2022 10:10 |
An error occurs.'Increase the file catalog size. ' | dhehdxhdaus | CFX | 3 | April 10, 2022 21:13 |
Error Interpolating Results onto New Mesh | nammeh | CFX | 1 | March 26, 2019 13:08 |
Interpolating a results file onto multiple identical domains | jtipton2 | CFX | 0 | June 7, 2011 12:44 |
Changing the grid on the same set-up | Katya | FLUENT | 7 | October 8, 2009 17:31 |