Reconstruct the parallel files into a single field
******************* 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 went through the user-guide to see how to convert the parallel files into a single field using FieldConvert. Unfortunately, I wasn't able to do it. Is there any specific command to do this? For example, I have 128 parallel fields inside a solution directory. I'd like to reconstruct them into a single file to post-process the solution. Kind regards syavash
Hi Ehsan, You can find more information about file conversion here: https://doc.nektar.info/userguide/5.2.0/user-guidese20.html Also, if you have compiled Nektar++ with Hdf5, you can produce a single Hdf5 file by using the -i Hdf5 option when running the solver. Best, Jacques ________________________________ From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of Ehsan Asgari <eh.asgari@gmail.com> Sent: Wednesday, March 15, 2023 6:11 AM To: nektar-users@imperial.ac.uk <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Reconstruct the parallel files into a single field This email from eh.asgari@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<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspam.ic.ac.uk%2FSpamConsole%2FSenders.aspx&data=05%7C01%7Cjacques.xing%40kcl.ac.uk%7Cac4d6e467a8041b2290d08db251c3bcc%7C8370cf1416f34c16b83c724071654356%7C0%7C0%7C638144575417196761%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=m0Mg2ivCEk0cOq%2BlgS5J%2BWOJPf0h0Ofo6cslyQdJcns%3D&reserved=0> to disable email stamping for this address. Dear all, I went through the user-guide to see how to convert the parallel files into a single field using FieldConvert. Unfortunately, I wasn't able to do it. Is there any specific command to do this? For example, I have 128 parallel fields inside a solution directory. I'd like to reconstruct them into a single file to post-process the solution. Kind regards syavash
PS: If you want to combine all your previous XML files into a single one, you can also execute the following command FieldConvert in.fld out.fld:fld:format=Xml ________________________________ From: Jacques Xing <jacques.xing@kcl.ac.uk> Sent: Wednesday, March 15, 2023 10:57 AM To: Ehsan Asgari <eh.asgari@gmail.com>; nektar-users@imperial.ac.uk <nektar-users@imperial.ac.uk> Subject: Re: [Nektar-users] Reconstruct the parallel files into a single field Hi Ehsan, You can find more information about file conversion here: https://doc.nektar.info/userguide/5.2.0/user-guidese20.html Also, if you have compiled Nektar++ with Hdf5, you can produce a single Hdf5 file by using the -i Hdf5 option when running the solver. Best, Jacques ________________________________ From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of Ehsan Asgari <eh.asgari@gmail.com> Sent: Wednesday, March 15, 2023 6:11 AM To: nektar-users@imperial.ac.uk <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Reconstruct the parallel files into a single field This email from eh.asgari@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<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspam.ic.ac.uk%2FSpamConsole%2FSenders.aspx&data=05%7C01%7Cjacques.xing%40kcl.ac.uk%7Cac4d6e467a8041b2290d08db251c3bcc%7C8370cf1416f34c16b83c724071654356%7C0%7C0%7C638144575417196761%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=m0Mg2ivCEk0cOq%2BlgS5J%2BWOJPf0h0Ofo6cslyQdJcns%3D&reserved=0> to disable email stamping for this address. Dear all, I went through the user-guide to see how to convert the parallel files into a single field using FieldConvert. Unfortunately, I wasn't able to do it. Is there any specific command to do this? For example, I have 128 parallel fields inside a solution directory. I'd like to reconstruct them into a single file to post-process the solution. Kind regards syavash
Hi Syavash, You should not need to convert the parallel file into a single file. Just run FieldConvert on the directory name FieldConvert file.fld out.plt The code automatically detects if it is a directory or file and reads the data accordingly. Cheers, Spencer. From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of Ehsan Asgari <eh.asgari@gmail.com> Date: Wednesday, 15 March 2023 at 06:12 To: nektar-users <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Reconstruct the parallel files into a single field This email from eh.asgari@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<https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address. Dear all, I went through the user-guide to see how to convert the parallel files into a single field using FieldConvert. Unfortunately, I wasn't able to do it. Is there any specific command to do this? For example, I have 128 parallel fields inside a solution directory. I'd like to reconstruct them into a single file to post-process the solution. Kind regards syavash
participants (3)
-
Ehsan Asgari
-
Jacques Xing
-
Sherwin, Spencer J