Invert results about a symmetric axis via post processing | 2D flow
******************* This email 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 https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Dear all, I want to obtain a two-dimensional channel flow solution (y=-0.5 to 0.5) by simulating half of the channel (y=-0.5 to 0, with symmetry boundary conditions at y=0) in Nektar++. I have the resulting field file (.fld) of lower half channel but need to invert the same about the y=0 centerline to get the field of upper half channel and merge both to obtain full channel flow field. Can this be done in FieldConvert or some other Nektar++ tool? I need to use the full channel field as a restart condition for further purpose. Thank you in advance. Regards, Nandan Sarkar PhD candidate Dept. of Mechanical Engineering Indian Institute of Technology Kharagpur India 721302
Dear Nandan, If I understood you correctly, you need to simply mirror your solution about the x-axis? What I would do is write out the current solution as a vtu, read it into Python, mirror it and write it out as csv. Finally, interpolate. That way you have a pipeline to apply any sort of modifications to your file. All the best, Guglielmo ________________________________ From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of nandan.sarkar@iitkgp.ac.in <nandan.sarkar@iitkgp.ac.in> Sent: 15 February 2023 04:35 To: nektar-users <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Invert results about a symmetric axis via post processing | 2D flow This email from nandan.sarkar@iitkgp.ac.in 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<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address. Dear all, I want to obtain a two-dimensional channel flow solution (y=-0.5 to 0.5) by simulating half of the channel (y=-0.5 to 0, with symmetry boundary conditions at y=0) in Nektar++. I have the resulting field file (.fld) of lower half channel but need to invert the same about the y=0 centerline to get the field of upper half channel and merge both to obtain full channel flow field. Can this be done in FieldConvert or some other Nektar++ tool? I need to use the full channel field as a restart condition for further purpose. Thank you in advance. Regards, Nandan Sarkar PhD candidate Dept. of Mechanical Engineering Indian Institute of Technology Kharagpur India 721302
Hi Guglielmo, Thank you for your time. I need to mirror the solution about y axis, but also somehow use the resultant file in Nektar++ for additional tasks. Is this possible? I need to somehow reverse the order of operation (vtu to fld) after mirroring the solution. Regards Nandan
On 15-Feb-2023, at 1:32 PM, Vivarelli, Guglielmo A <guglielmo.vivarelli12@imperial.ac.uk> wrote:
 Dear Nandan, If I understood you correctly, you need to simply mirror your solution about the x-axis? What I would do is write out the current solution as a vtu, read it into Python, mirror it and write it out as csv. Finally, interpolate. That way you have a pipeline to apply any sort of modifications to your file.
All the best,
Guglielmo From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of nandan.sarkar@iitkgp.ac.in <nandan.sarkar@iitkgp.ac.in> Sent: 15 February 2023 04:35 To: nektar-users <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Invert results about a symmetric axis via post processing | 2D flow
This email from nandan.sarkar@iitkgp.ac.in 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 want to obtain a two-dimensional channel flow solution (y=-0.5 to 0.5) by simulating half of the channel (y=-0.5 to 0, with symmetry boundary conditions at y=0) in Nektar++.
I have the resulting field file (.fld) of lower half channel but need to invert the same about the y=0 centerline to get the field of upper half channel and merge both to obtain full channel flow field. Can this be done in FieldConvert or some other Nektar++ tool?
I need to use the full channel field as a restart condition for further purpose.
Thank you in advance.
Regards, Nandan Sarkar PhD candidate Dept. of Mechanical Engineering Indian Institute of Technology Kharagpur India 721302
Hi Nandan, Thank you for your continued interested in Nektar++. Once you have mirrored the solution in Python you can write it out as as csv and use the interpolation functionality (FieldConvert, please see manual) to interpolate the csv onto an xml mesh. This will write out your fld file you may use as an initial condition. Thanks, Guglielmo ________________________________ From: Nandan Sarkar <nandan.sarkar@iitkgp.ac.in> Sent: 21 February 2023 18:58 To: Vivarelli, Guglielmo A <guglielmo.vivarelli12@imperial.ac.uk> Cc: nektar-users <nektar-users@imperial.ac.uk> Subject: Re: [Nektar-users] Invert results about a symmetric axis via post processing | 2D flow Hi Guglielmo, Thank you for your time. I need to mirror the solution about y axis, but also somehow use the resultant file in Nektar++ for additional tasks. Is this possible? I need to somehow reverse the order of operation (vtu to fld) after mirroring the solution. Regards Nandan On 15-Feb-2023, at 1:32 PM, Vivarelli, Guglielmo A <guglielmo.vivarelli12@imperial.ac.uk> wrote:  Dear Nandan, If I understood you correctly, you need to simply mirror your solution about the x-axis? What I would do is write out the current solution as a vtu, read it into Python, mirror it and write it out as csv. Finally, interpolate. That way you have a pipeline to apply any sort of modifications to your file. All the best, Guglielmo ________________________________ From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of nandan.sarkar@iitkgp.ac.in <nandan.sarkar@iitkgp.ac.in> Sent: 15 February 2023 04:35 To: nektar-users <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Invert results about a symmetric axis via post processing | 2D flow This email from nandan.sarkar@iitkgp.ac.in 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<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address. Dear all, I want to obtain a two-dimensional channel flow solution (y=-0.5 to 0.5) by simulating half of the channel (y=-0.5 to 0, with symmetry boundary conditions at y=0) in Nektar++. I have the resulting field file (.fld) of lower half channel but need to invert the same about the y=0 centerline to get the field of upper half channel and merge both to obtain full channel flow field. Can this be done in FieldConvert or some other Nektar++ tool? I need to use the full channel field as a restart condition for further purpose. Thank you in advance. Regards, Nandan Sarkar PhD candidate Dept. of Mechanical Engineering Indian Institute of Technology Kharagpur India 721302
participants (3)
- 
                
                Nandan Sarkar
- 
                
                nandan.sarkar@iitkgp.ac.in
- 
                
                Vivarelli, Guglielmo A