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

Reading the boundary condition from a file and interpolating it on a cylinder

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2022, 11:35
Smile 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
Roozbeh_Sa is on a distinguished road
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
Attached Images
File Type: png Scematic.PNG (111.5 KB, 2 views)
Roozbeh_Sa 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
[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


All times are GMT -4. The time now is 14:07.