Using FieldConvert for parallel solution files
******************* 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. ******************* Hello, I hope everyone is ok. I am a new user of Nektar++ and in a bind. Specifically, I am stuck on using the FieldConvert utility to re-construct the decomposed solution files generated when the AcousticSolver was run with mpirun.I have referred to the user guide Section 5.7(Version 5.3.0) but it doesn't work. I tried to run the FieldConvert with 10 processors like this: mpirun -np 10 FieldConvert case.xml case_0.chk case_0.vtu. This didn't work and throws errors. This syntax matches with what is mentioned in Section 5.7 of the user guide. What would be the right way to using FieldConvert when you have solution files that have been generated in parallel run ? Regards, Ishan PGR
Hello Ishan, Reconstructing a parallel solution does not need to be done in parallel. Perhaps with some very large solution files this is necessary, but in my experience, reconstructing in serial can be quite efficient too. Because you say your solution is decomposed, case_0.chk must be a directory. What I have done in the past is: FieldConvert case.xml case_0.chk/ case_0.vtu The only differences between this and the command you were using are that I'm running in serial and I added a "/" to the end of the case_0.chk. You could try this with mpirun -np 10 in front as well. Just make sure you have the "/". If you are using FieldConvert with a different number of processors than you ran the simulation with, this may not work but give it a try. If you still can't get it to work, please send your error message. I would also recommend using the HDF5 output option which will tell your simulation to output solution files that are already reconstructed. You will still have to convert the files to a format readable by Paraview but it's helpful to have fewer files in case you need to save many time steps and your cluster has a file count limit. There are several other benefits of HDF5 with Nektar++. Please let me know if this helps and if you have more questions. All the best, Isaac ________________________________ From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of Nande, Ishan A. <ian9@leicester.ac.uk> Sent: Saturday, September 30, 2023 9:06 AM To: nektar-users@imperial.ac.uk <nektar-users@imperial.ac.uk> Subject: [Nektar-users] Using FieldConvert for parallel solution files [△EXTERNAL] This email from ian9@leicester.ac.uk 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. Hello, I hope everyone is ok. I am a new user of Nektar++ and in a bind. Specifically, I am stuck on using the FieldConvert utility to re-construct the decomposed solution files generated when the AcousticSolver was run with mpirun.I have referred to the user guide Section 5.7(Version 5.3.0) but it doesn’t work. I tried to run the FieldConvert with 10 processors like this: mpirun -np 10 FieldConvert case.xml case_0.chk case_0.vtu. This didn’t work and throws errors. This syntax matches with what is mentioned in Section 5.7 of the user guide. What would be the right way to using FieldConvert when you have solution files that have been generated in parallel run ? Regards, Ishan PGR
Hi Isaac, Thanks for the info but for the decomposed case the format you mentioned doesn’t work. So, the name of my case is LEE_simple_source. My case folder has 6 .chk folders and, and each folder contains 10 decomposed .fld files corresponding to “mpirun -np 10” parallel run. It also contains an xml folder with, again, 10 xml files corresponding to “mpirun -np 10” parallel run. The parent case folder looks like this: [cid:image001.png@01D9F3E5.D4F35F00] I tried to run the following command but it threw a bunch of segmentation faults: mpirun -np 10 FieldConvert LEE_simple_source.xml LEE_simple_source_0.chk/ LEE_simple_source_0.vtu Just to clarify, I am able to use FieldConvert for serial runs. No issues at all. Another variation I have tried is this: mpirun -np 10 FieldConvert LEE_simple_source_xml/P0000000.xml LEE_simple_source_0.chk/P0000000.fld LEE_simple_source_0.vtu This in fact generates .vtu and .pvtu files as mentioned in the user guide. However, for some reason when I load .pvtu files, ParaView shows only partial domain. On further investigation I found that the individual processor files are the same. Shouldn’t they be different? If you have an “mpirun -np 10” solution, each file should have unique data which when merged should show the whole domain. I can send you my setup and mesh files if you have time. It’s nothing special. It’s a 50 x 50 2D quad mesh with a source placed at the centre. Regards, Ishan PGR From: Isaac Rosin <isaac.rosin1@ucalgary.ca> Sent: 30 September 2023 20:13 To: Nande, Ishan A. <ian9@leicester.ac.uk>; nektar-users@imperial.ac.uk Subject: Re: Using FieldConvert for parallel solution files You don't often get email from isaac.rosin1@ucalgary.ca<mailto:isaac.rosin1@ucalgary.ca>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> ***CAUTION:*** This email was sent from an EXTERNAL source. Think before clicking links or opening attachments. Hello Ishan, Reconstructing a parallel solution does not need to be done in parallel. Perhaps with some very large solution files this is necessary, but in my experience, reconstructing in serial can be quite efficient too. Because you say your solution is decomposed, case_0.chk must be a directory. What I have done in the past is: FieldConvert case.xml case_0.chk/ case_0.vtu The only differences between this and the command you were using are that I'm running in serial and I added a "/" to the end of the case_0.chk. You could try this with mpirun -np 10 in front as well. Just make sure you have the "/". If you are using FieldConvert with a different number of processors than you ran the simulation with, this may not work but give it a try. If you still can't get it to work, please send your error message. I would also recommend using the HDF5 output option which will tell your simulation to output solution files that are already reconstructed. You will still have to convert the files to a format readable by Paraview but it's helpful to have fewer files in case you need to save many time steps and your cluster has a file count limit. There are several other benefits of HDF5 with Nektar++. Please let me know if this helps and if you have more questions. All the best, Isaac ________________________________ From: nektar-users-bounces@imperial.ac.uk<mailto:nektar-users-bounces@imperial.ac.uk> <nektar-users-bounces@imperial.ac.uk<mailto:nektar-users-bounces@imperial.ac.uk>> on behalf of Nande, Ishan A. <ian9@leicester.ac.uk<mailto:ian9@leicester.ac.uk>> Sent: Saturday, September 30, 2023 9:06 AM To: nektar-users@imperial.ac.uk<mailto:nektar-users@imperial.ac.uk> <nektar-users@imperial.ac.uk<mailto:nektar-users@imperial.ac.uk>> Subject: [Nektar-users] Using FieldConvert for parallel solution files [△EXTERNAL] This email from ian9@leicester.ac.uk<mailto:ian9@leicester.ac.uk> 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. Hello, I hope everyone is ok. I am a new user of Nektar++ and in a bind. Specifically, I am stuck on using the FieldConvert utility to re-construct the decomposed solution files generated when the AcousticSolver was run with mpirun.I have referred to the user guide Section 5.7(Version 5.3.0) but it doesn’t work. I tried to run the FieldConvert with 10 processors like this: mpirun -np 10 FieldConvert case.xml case_0.chk case_0.vtu. This didn’t work and throws errors. This syntax matches with what is mentioned in Section 5.7 of the user guide. What would be the right way to using FieldConvert when you have solution files that have been generated in parallel run ? Regards, Ishan PGR
participants (2)
- 
                
                Isaac Rosin
- 
                
                Nande, Ishan A.