This email from mgoldbac@uncc.edu originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list to disable email stamping for this address.

 

Hi All,

I would like to sample data from a plane within my domain (turbulent channel), and use those values as the inlet boundary.  The plane at which data is sampled is in the middle of the domain, so a periodic boundary is not suitable.  Is this possible, and if so how can I do this?

So far I have looked at using the "HistoryPoints" filter to extract data from the simulation along a plane, but I cannot quite figure out how to read the time dependent boundary data from file:

 88         <BOUNDARYCONDITIONS>
 95             <REGION REF="0">
 96                 <D VAR="u" FILE="periodicInlet_<!--What do I put here??-->"/>
 97                 <D VAR="v" VALUE="0" />
 98                 <D VAR="w" VALUE="0" />
 99                 <N VAR="p" USERDEFINEDTYPE="H" VALUE="0" />
100             </REGION>
...
185         </BOUNDARYCONDITIONS>
...
256       <FILTER TYPE="HistoryPoints">
257           <PARAM NAME="OutputFile">periodicInlet</PARAM>
258           <PARAM NAME="OutputFrequency">1</PARAM>
259           <PARAM NAME="OutputOneFile">false</PARAM>
260           <PARAM NAME="plane">
261               100, 100,
262               0, 0, 0,
263               0, 7, 0,
264               0, 0, 2,
265               0, 7, 2
266           </PARAM>
267       </FILTER>

When using <PARAM NAME="OutputOneFile">false</PARAM>, the history point data is saved in files based on index (e.g. periodicInlet_0, periodicInlet_1, periodicInlet_2, etc.)

Any suggestions are appreciated.

Regards,

Marc Goldbach
PhD Student, Department of Mechanical Engineering
University of North Carolina at Charlotte