generation of boundaryData files for timeVaryingMappedFixedValue
I'm trying to generate the boundaryData files (to be read by timeVaryingMappedFixedValue) from a previous run with icoFoam. That is, I want to save the values of U and p at the outlet of a channel (U and p at the outlet are transient and nonuniform) in order to be read as inlet boundary conditions (in a subsequent run) once the BoundaryData files have been created. Mesh at the channel inlet and outlet is the same so really no interpolation is needed.
I've been trying to manipulate the sample utility (using surface at the outlet patch) to write the boundaryData files but canīt really get the appropiate format of the points, U and p files.
I'd be very grateful if someone can give me a hint of how to solve this problem.
This is exactly what I would like to do as well.
I could probably write a script to parse the mesh for locations on the boundaries of interest then look for the U/p values in the solution and format a boundaryData file from that.
There must be an easier way, right? or has someone done this already?
|All times are GMT -4. The time now is 17:22.|