onodip / OpenMDAO-XDSM

XDSM viewer plugin for OpenMDAO
Apache License 2.0
7 stars 4 forks source link

Diagram Differences with openmdao 3.3 #7

Closed JiaruiYangAtCornell closed 8 months ago

JiaruiYangAtCornell commented 9 months ago

Hi, just tried the example of omxdsm/examples/sellar_xdsmjs.py using openmdao 3.30. Generated the following diagram which is different from what it was supposed to be shown on the GitHub.

Any guideline for a clearer view?

image
onodip commented 8 months ago

@JiaruiYangAtCornell you can control the looks of your diagram with the "include_indepvarcomps" and "class_names" arguments of the write_xdsm() function. If you set both of them to "False", you will get the following diagram:

image

You can read more about the available options here: https://github.com/onodip/OpenMDAO-XDSM/tree/v1.0/omxdsm/docs/xdsm_visualization.rst And in the docstring: https://github.com/onodip/OpenMDAO-XDSM/tree/v1.0/omxdsm/xdsm_writer.py#L831

onodip commented 8 months ago

I updated the master branch and created a new tag, where this is the default setting in XDSMjs example. https://github.com/onodip/OpenMDAO-XDSM/releases/tag/v1.1