diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 86a0d9f..e7416fb 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-11-28T09:07:58","documenter_version":"1.8.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-11-28T14:00:22","documenter_version":"1.8.0"}} \ No newline at end of file diff --git a/dev/index.html b/dev/index.html index bacd60c..14c46e0 100644 --- a/dev/index.html +++ b/dev/index.html @@ -1,3 +1,3 @@ -Home · ParaViewCatalyst.jl

ParaViewCatalyst.jl

<!– Docs-stable –> Docs-dev Slack License: MIT <!– Build Status –> <!– Codecov –> <!– Coveralls –>

ParaViewCatalyst.jl provides a Julia interface to Catalyst, used for in-situ visualization of simulation data. The Catalyst library for Julia is provided automatically as a precompiled binary by Catalyst_jll.jl at JuliaBinaryWrappers and Yggdrasil.

Getting started

Prerequisites

Although the Catalyst API is not restricted to ParaView, this package is geared towards the ParaView implementation of the Catalyst API. As such ParaView needs to be present on the machine you run your simulation on. In particular, a version is required that ships the Catalyst implementation as a library. On Linux you should look for libcatalyst-paraview.so. Its path has to be set as an environment variable, e.g. by

export CATALYST_IMPLEMENTATION_PATHS=<path_to_libcatalyst-paraview.so>

Alternatively, when using ParaViewCatalyst.jl from your own application, you can use the keyword argument libpath of the function catalyst_initialize.

Testing

Catalyst implementation

Go to the examples folder and start julia using

julia --project=.

In package mode do

(examples) pkg> dev ..
-(examples) pkg> instantiate

then

julia> include("test_init.jl")

You should see some information about the Catalyst implementation. In particular, you should see implementation: "paraview". More verbose output can be enabled by setting the environment variable CATALYST_DEBUG=1.

Paraview

Launch ParaView. From the main menu, select "Catalyst", then "Connect", and accept the default port. Select "Catalyst" again and then "Pause Simulation". Now launch Julia as done before, and execute

julia> include("test_execute.jl")

In ParaView click on the symbol in front of "Input", then click on the symbol in front of "Extract: input". You should now see a square. In the properties tab under "Coloring", select "testdata". Now select "Catalyst" from the main menu and "Continue". The square should change its color every two seconds.

Using the interface

To use ParaViewCatalyst.jl from your code, you only need catalyst_initialize(), catalyst_execute(node), and catalyst_finalize(). All information is passed through Conduit nodes, which are required to adhere to the Blueprint.

A user-defined ParaView pipeline script can be passed to catalyst_initialize using the keyword argument catalyst_pipeline. By default src/catalyst_pipeline.py is used, which activates live visualization. The data can also be viewed on a remote machine. In this case options.CatalystLiveURL has to be adjusted to point to the remote machine. Once a pipeline in ParaView has been set up, it can be exported as a script by selecting "File" from the main menu and then "Save Catalyst State". It might be required to modify this file afterwards.

Examples

ParaViewCatalyst.jl is used by Trixi.jl.

Authors

ParaViewCatalyst.jl was initiated by Jake Bolewski (@jakebolewski) at https://github.com/CliMA and is now maintained by Benedict Geihe (University of Cologne, Germany).

License and contributing

ParaViewCatalyst.jl is licensed under the MIT license (see License). Since ParaViewCatalyst.jl is an open-source project, we are very happy to accept contributions from the community. Note that we strive to be a friendly, inclusive open-source community and ask all members of our community to treat each other decently. To get in touch with the developers, join us on Slack or create an issue.

+Home · ParaViewCatalyst.jl

ParaViewCatalyst.jl

<!– Docs-stable –> Docs-dev Slack License: MIT <!– Build Status –> <!– Codecov –> <!– Coveralls –>

ParaViewCatalyst.jl provides a Julia interface to Catalyst, used for in-situ visualization of simulation data. The Catalyst library for Julia is provided automatically as a precompiled binary by Catalyst_jll.jl at JuliaBinaryWrappers and Yggdrasil.

Getting started

Prerequisites

Although the Catalyst API is not restricted to ParaView, this package is geared towards the ParaView implementation of the Catalyst API. As such ParaView needs to be present on the machine you run your simulation on. In particular, a version is required that ships the Catalyst implementation as a library. On Linux you should look for libcatalyst-paraview.so. Its path has to be set as an environment variable, e.g. by

export CATALYST_IMPLEMENTATION_PATHS=<path_to_libcatalyst-paraview.so>

Alternatively, when using ParaViewCatalyst.jl from your own application, you can use the keyword argument libpath of the function catalyst_initialize.

Testing

Catalyst implementation

Go to the examples folder and start julia using

julia --project=.

In package mode do

(examples) pkg> dev ..
+(examples) pkg> instantiate

then

julia> include("test_init.jl")

You should see some information about the Catalyst implementation. In particular, you should see implementation: "paraview". More verbose output can be enabled by setting the environment variable CATALYST_DEBUG=1.

Paraview

Launch ParaView. From the main menu, select "Catalyst", then "Connect", and accept the default port. Select "Catalyst" again and then "Pause Simulation". Now launch Julia as done before, and execute

julia> include("test_execute.jl")

In ParaView click on the symbol in front of "Input", then click on the symbol in front of "Extract: input". You should now see a square. In the properties tab under "Coloring", select "testdata". Now select "Catalyst" from the main menu and "Continue". The square should change its color every two seconds.

Using the interface

To use ParaViewCatalyst.jl from your code, you only need catalyst_initialize(), catalyst_execute(node), and catalyst_finalize(). All information is passed through Conduit nodes, which are required to adhere to the Blueprint.

A user-defined ParaView pipeline script can be passed to catalyst_initialize using the keyword argument catalyst_pipeline. By default src/catalyst_pipeline.py is used, which activates live visualization. The data can also be viewed on a remote machine. In this case options.CatalystLiveURL has to be adjusted to point to the remote machine. Once a pipeline in ParaView has been set up, it can be exported as a script by selecting "File" from the main menu and then "Save Catalyst State". It might be required to modify this file afterwards.

Examples

ParaViewCatalyst.jl is used by Trixi.jl.

Authors

ParaViewCatalyst.jl was initiated by Jake Bolewski (@jakebolewski) at https://github.com/CliMA and is now maintained by Benedict Geihe (University of Cologne, Germany).

License and contributing

ParaViewCatalyst.jl is licensed under the MIT license (see License). Since ParaViewCatalyst.jl is an open-source project, we are very happy to accept contributions from the community. Note that we strive to be a friendly, inclusive open-source community and ask all members of our community to treat each other decently. To get in touch with the developers, join us on Slack or create an issue.

diff --git a/dev/license/index.html b/dev/license/index.html index c1bb183..c5c9d9a 100644 --- a/dev/license/index.html +++ b/dev/license/index.html @@ -1,2 +1,2 @@ -License · ParaViewCatalyst.jl

License

MIT License

Copyright (c) 2022 Jake Bolewski, Caltech

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+License · ParaViewCatalyst.jl

License

MIT License

Copyright (c) 2022 Jake Bolewski, Caltech

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

diff --git a/dev/reference/index.html b/dev/reference/index.html index 8fcafde..f1b2b9f 100644 --- a/dev/reference/index.html +++ b/dev/reference/index.html @@ -1,2 +1,2 @@ -API reference · ParaViewCatalyst.jl
+API reference · ParaViewCatalyst.jl