febiosoftware / FEBioStudio

https://febio.org/
MIT License
62 stars 20 forks source link

Convert .xplt to vtk in Multiphasic Analysis #48

Open steffenger opened 2 years ago

steffenger commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Hi Steve,

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

`

</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 commented 2 years ago

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 commented 1 year ago

Hi Steve,

is there an update on this situation?

Best regards,

Steffen

SteveMaas1978 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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