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

Convert .xplt to vtk in Multiphasic Analysis #48

Open
steffenger opened this issue Apr 12, 2022 · 9 comments
Open

Convert .xplt to vtk in Multiphasic Analysis #48

steffenger opened this issue Apr 12, 2022 · 9 comments

Comments

@steffenger
Copy link

Hello FEBio,

I simulated a Multiphasic Analysis with two solutes and I tried to convert the results to the vtk format.
It seems that the vtk export function does not work properly, because not all data fields are exported (For example solute concentration).
If I have made a mistake or missed something in the data fields or if you need more information, please let me know.

best regards,

steffen

benchmark_lobule.zip
benchmark_lobule.t10.zip

@SteveMaas1978
Copy link
Member

Hi Steffen,

The VTK export feature only exports the data variable that is currently plotted. It does not output all variables. I can look into adding an option to support this if that would be helpful.

Best,

Steve

@steffenger
Copy link
Author

Hi Steve,

What do you mean with "currently plotted"? Since all the variables are specified in the input file.

<Output> <plotfile type="febio"> <var type="displacement"/> <var type="stress"/> <var type="effective fluid pressure"/> <var type="fluid flux"/> <var type="solid stress"/> <var type="effective solute concentration"/> <var type="solute concentration"/> <var type="solute flux"/> </plotfile> </Output>

And for example, the displacement is successfully exported to vtk but others are not. Maybe there are differences how the variables are defined in the sorce code?

Best regards,

Steffen

@SteveMaas1978
Copy link
Member

Hi Steffen,

Ignore what I said before. I was thinking of another file export format.

The reason why the concentration is not output, is because this is an array variable and these variables are currently not exported to VTK (only scalar, vector, and tensors are supported). I'll see if I can find a way to export these types of variables to the VTK file as well.

Best,

Steve

@steffenger
Copy link
Author

Hi Steve,

is there an update on this situation?

Best regards,

Steffen

@SteveMaas1978
Copy link
Member

Hi Steffen,

I committed a fix to the develop version yesterday that address some (though not all) of the limitations of vtk export. In particular, array variables are now exported to a FIELD data set in the vtk file. Please update to the dev version and give it a try. Let me know what you find.

Thanks,

Steve

@steffenger
Copy link
Author

Hi Steve,

I did the update to 1.9.0 via the tools panel. But when i export to vtk, the issue with my application is still the same, that there are no concentrations in the vtk files.

.xplt file

image

vtk file

image

Or did i something wrong?

best regards,

Steffen

@SteveMaas1978
Copy link
Member

Hi Steffen,

I implemented the fix in the 2.1 version. Can you try upgrading to that version and then give it a try?

Thanks,

Steve

@steffenger
Copy link
Author

Hi Steve,

I tried Version 2.1.1 from https://febio.org/downloads/ but the vtk still looks the same:D Is this the right version?

Best regards,

Steffen

@SteveMaas1978
Copy link
Member

Hi Steffen,

This fix was implemented in the develop version. After you install the 2.1.1 version, follow these instructions to update to the latest development version.

Best,

Steve

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

No branches or pull requests

2 participants