Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect file endings in .pvd file #32

Open
DavidVonRueden opened this issue Oct 13, 2023 · 1 comment
Open

Incorrect file endings in .pvd file #32

DavidVonRueden opened this issue Oct 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DavidVonRueden
Copy link

Hello,
First of all, thank you for this tool!
I ran into an issue using the conversion from .frd to vtu. The conversion to to .vtu works just fine resulting in files like:
shell.01.vtu
shell.02.vtu
....
The created .pvd file then contains

		<DataSet file="shell.01vtu" timestep="0.002"/>
		<DataSet file="shell.02vtu" timestep="0.004"/>

Due to the missing dot, the correct .vtu files can't be opened.
I could resolve this issue by changing the following section:

for step, inc, num in self.step_inc_num():
file_name = os.path.basename(self.frd_file_name[:-4]) + num
f.write('\t\t<DataSet file="{}vtu" timestep="{}"/>\n'\
.format(os.path.basename(file_name), inc))

f.write('\t\t<DataSet file="{}.vtu" timestep="{}"/>\n'\ 
         .format(os.path.basename(file_name), inc))

Can you confirm this behaviour on your side?

@imirzov imirzov added the bug Something isn't working label Nov 11, 2023
@imirzov
Copy link
Collaborator

imirzov commented Nov 4, 2024

@DavidVonRueden Please, confirm the issue is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants