File naming convention for APESolver
Hello everyone, I'm trying to use the APESolver using a time-dependent series of files for my baseflow and my source terms. I'm having difficulty in figuring out the regex that's used to specify the format of these file names. From the tutorial the file names are specified in the .xml file as thus: APEzzz_%14.8E.pts while the actual filename this points to is : APEzzz_1.00000000E-05.pts and so on. I can't quite decipher the regex. Observation tells me that the 14 refers to the total number of characters after the underscore and 8 is the number of zeros between the decimal point and the E. However, since my input .pts file come directly from a simulation it would be easier for me if I could provide the regex to the .xml file to access filenames of the form APEzzz_1401.pts, APEzzz_1402.pts and so on. I have tried APEzzzz_%4.pts as an input but this returns an error. I'd be grateful for some further guidance in this regard. Sincerely, -- *Amitvikram Dutta* Graduate Research Assistant Fluid Mechanics Research Lab Multi-Physics Interaction Lab University of Waterloo
Hi Amitvikram, the file names are not generated from regular expressions but a from boost::format, which works similar as printf: filename = boost::str(boost::format(filename) % pTime) So the file names must be based in their corresponding timestep. This is by purpose because otherwise, restarting would become quite messy. Cheers, Kilian Am 22.11.18 um 23:59 schrieb Amitvikram Dutta:
Hello everyone,
I'm trying to use the APESolver using a time-dependent series of files for my baseflow and my source terms. I'm having difficulty in figuring out the regex that's used to specify the format of these file names. From the tutorial the file names are specified in the .xml file as thus:
APEzzz_%14.8E.pts
while the actual filename this points to is :
APEzzz_1.00000000E-05.pts and so on.
I can't quite decipher the regex. Observation tells me that the 14 refers to the total number of characters after the underscore and 8 is the number of zeros between the decimal point and the E. However, since my input .pts file come directly from a simulation it would be easier for me if I could provide the regex to the .xml file to access filenames of the form
APEzzz_1401.pts, APEzzz_1402.pts and so on.
I have tried
APEzzzz_%4.pts
as an input but this returns an error. I'd be grateful for some further guidance in this regard.
Sincerely, --
*Amitvikram Dutta*
Graduate Research Assistant
Fluid Mechanics Research Lab
Multi-Physics Interaction Lab
University of Waterloo
_______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
- 
                
                Amitvikram Dutta
- 
                
                Kilian Lackhove