This email from hongfu2233@gmail.com 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.

 


Dear all,
I would like to know how to set a flow past a forced oscillating cylinder by nektar++, in which the cylinder's velocity and displacement are read from a file. I know how to read the velocity and displacement from  an analytic function:
 
<FUNCTION NAME="Mapping">
<E VAR="x" VALUE="x" />
<E VAR="y" VALUE="y + cos(2*PI*t)" />
 </FUNCTION>

 <FUNCTION NAME="MappingVel">
<E VAR="vx" VALUE="0.0" />
<E VAR="vy" VALUE="-1.0*2*PI*sin(2*PI*t)" />
 </FUNCTION>
But how to read them from a file, since the cylinder's velocity and displacement can't be expressed by analytic function.

Thank you in advance,
Regards,
Hongfu Zhang
Northeast Forestry University