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

printing ASCII data to file #10

Open
zengbs opened this issue Dec 8, 2019 · 1 comment
Open

printing ASCII data to file #10

zengbs opened this issue Dec 8, 2019 · 1 comment

Comments

@zengbs
Copy link

zengbs commented Dec 8, 2019

Dear maintainers,
Does r3d2 code support printing ASCII data to file? In my opinion, this feature is very helpful for comparing exact solution and the data obtained from sr-hydro solver. thanks!

@IanHawke
Copy link
Collaborator

We don't have this in directly, no. In essence we'd be extracting the code from the _figure_data function in https://github.com/harpolea/r3d2/blob/master/r3d2/riemann_problem.py where the data is temporarily stored in the data variable. Note that the data returned from the function is not the data array - it's been overwritten by the figure data.

For any given wave you can get the data using wave.plotting_data (taking care about the direction of the wave). That could be dumped directly right now, but would require more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants