Skip to content

Commit 6187858

Browse files
authored
Merge pull request ComputationalRadiationPhysics#2530 from ax3l/topic-pngParam
visualization -> png.param
2 parents 2c8a2bd + 16a101f commit 6187858

File tree

16 files changed

+25
-477
lines changed

16 files changed

+25
-477
lines changed

docs/source/usage/param/plugins.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ radiationObserver.param
5151
:path: include/picongpu/param/radiationObserver.param
5252
:no-link:
5353

54-
visualization.param
55-
^^^^^^^^^^^^^^^^^^^
54+
png.param
55+
^^^^^^^^^
5656

57-
.. doxygenfile:: visualization.param
57+
.. doxygenfile:: png.param
5858
:project: PIConGPU
59-
:path: include/picongpu/param/visualization.param
59+
:path: include/picongpu/param/png.param
6060
:no-link:
6161

62-
visColorScales.param
62+
pngColorScales.param
6363
^^^^^^^^^^^^^^^^^^^^
6464

65-
.. doxygenfile:: visColorScales.param
65+
.. doxygenfile:: pngColorScales.param
6666
:project: PIConGPU
67-
:path: include/picongpu/param/visColorScales.param
67+
:path: include/picongpu/param/pngColorScales.param
6868
:no-link:
6969

docs/source/usage/plugins/png.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ E.g. in the following example, two different slices are visualized and stored in
5959
.param files
6060
^^^^^^^^^^^^
6161

62-
The two param files :ref:`visualization.param <usage-params-plugins>` and :ref:`visColorScales.param <usage-params-plugins>` are used to specify the desired output.
62+
The two param files :ref:`png.param <usage-params-plugins>` and :ref:`pngColorScales.param <usage-params-plugins>` are used to specify the desired output.
6363

64-
**Specifying the field values using** ``visualization.param``
64+
**Specifying the field values using** ``png.param``
6565

6666
Depending on the used prefix in the command line flags, electron and/or ion density is drawn.
6767
Additionally to that, three field values can be visualized together with the particle density.
68-
In order to set up the visualized field values, the ``visualization.param`` needs to be changed.
68+
In order to set up the visualized field values, the ``png.param`` needs to be changed.
6969
In this file, a variety of other parameters used for the PngModule can be specified.
7070

7171
The ratio of the image can be set.
@@ -86,7 +86,7 @@ In order to scale the image, ``scale_to_cellsize`` needs to be set to ``true`` a
8686
Make sure to reduce the preview size!
8787

8888
It is possible to draw the borders between the GPUs used as white lines.
89-
This can be done by setting the parameter ``white_box_per_GPU`` in ``visualization.param`` to ``true``
89+
This can be done by setting the parameter ``white_box_per_GPU`` in ``png.param`` to ``true``
9090

9191
.. code:: cpp
9292
@@ -137,11 +137,11 @@ and add different coloring:
137137
namespace preChannel2Col = colorScales::green; /* draw channel 2 in green */
138138
namespace preChannel3Col = colorScales::none; /* do not draw channel 3 */
139139
140-
The colors available are defined in ``visColorScales.param`` and their usage is described below.
140+
The colors available are defined in ``pngColorScales.param`` and their usage is described below.
141141
If ``colorScales::none`` is used, the channel is not drawn.
142142

143143

144-
In order to specify what the three channels represent, three functions can be defined in ``visualization.param``.
144+
In order to specify what the three channels represent, three functions can be defined in ``png.param``.
145145
The define the values computed for the png visualization.
146146
The data structures used are those available in PIConGPU.
147147

@@ -174,7 +174,7 @@ Only positive values are drawn. Negative values are clipped to zero.
174174
In the above example, this feature is used for ``preChannel3``.
175175

176176

177-
**Defining coloring schemes in** ``visColorScales.param``
177+
**Defining coloring schemes in** ``pngColorScales.param``
178178

179179
There are several predefined color schemes available:
180180

include/picongpu/_defaultParam.loader

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
#include "picongpu/param/fieldBackground.param"
5858

5959
#include "picongpu/param/fileOutput.param"
60-
#include "picongpu/param/visColorScales.param"
61-
#include "picongpu/param/visualization.param"
60+
#include "picongpu/param/pngColorScales.param"
61+
#include "picongpu/param/png.param"
6262
#include "picongpu/param/particleCalorimeter.param"
6363
#include "picongpu/param/isaac.param"
6464
#include "picongpu/param/radiationObserver.param"

include/picongpu/_defaultUnitless.loader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646

4747
#include "picongpu/unitless/fileOutput.unitless"
4848
#include "picongpu/unitless/checkpoints.unitless"
49-
#include "picongpu/unitless/visualization.unitless"
49+
#include "picongpu/unitless/png.unitless"
5050
#include "picongpu/unitless/radiation.unitless"
File renamed without changes.

include/picongpu/plugins/output/images/PngCreator.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace picongpu
7474
}
7575

7676
/* scale the image by a user defined relative factor
77-
* `scale_image` is defined in `visualization.param`
77+
* `scale_image` is defined in `png.param`
7878
*/
7979
float_X scale_x( scale_image );
8080
float_X scale_y( scale_image );

include/picongpu/unitless/visualization.unitless renamed to include/picongpu/unitless/png.unitless

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,28 @@ namespace picongpu
2929
//
3030
// setting 1: Laser
3131
#if( EM_FIELD_SCALE_CHANNEL1 == 1 || EM_FIELD_SCALE_CHANNEL2 == 1 || EM_FIELD_SCALE_CHANNEL3 == 1 )
32-
PMACC_DEF_IN_NAMESPACE_MSG( You_can_not_scale_your_preview_to_laser_without_using_a_laser___change_visualization_param, laserProfile, AMPLITUDE );
32+
PMACC_DEF_IN_NAMESPACE_MSG( You_can_not_scale_your_preview_to_laser_without_using_a_laser___change_png_param, laserProfile, AMPLITUDE );
3333
#endif
3434

3535
// setting 2: Drifting Plasma
3636
#if( EM_FIELD_SCALE_CHANNEL1 == 2 || EM_FIELD_SCALE_CHANNEL2 == 2 || EM_FIELD_SCALE_CHANNEL3 == 2 )
37-
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_drift_without_a_initially_drifting_plasma___change_visualization_param, ((PARTICLE_INIT_DRIFT_GAMMA)>1.0) );
37+
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_drift_without_a_initially_drifting_plasma___change_png_param, ((PARTICLE_INIT_DRIFT_GAMMA)>1.0) );
3838
#endif
3939

4040
// setting 3: Plasma Wave
4141
#if( EM_FIELD_SCALE_CHANNEL1 == 3 || EM_FIELD_SCALE_CHANNEL2 == 3 || EM_FIELD_SCALE_CHANNEL3 == 3 )
42-
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_plasma_density___change_visualization_param, (BASE_DENSITY>0.0) );
42+
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_plasma_density___change_png_param, (BASE_DENSITY>0.0) );
4343
#endif
4444

4545
// setting 4: Thermal Warm Plasma
4646
#if( EM_FIELD_SCALE_CHANNEL1 == 4 || EM_FIELD_SCALE_CHANNEL2 == 4 || EM_FIELD_SCALE_CHANNEL3 == 4 )
47-
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_plasma_density___change_visualization_param, (BASE_DENSITY>0.0) );
48-
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_electron_temperature___change_visualization_param, ((ELECTRON_TEMPERATURE)>0.0) );
47+
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_plasma_density___change_png_param, (BASE_DENSITY>0.0) );
48+
PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_electron_temperature___change_png_param, ((ELECTRON_TEMPERATURE)>0.0) );
4949
#endif
5050

5151
// setting 5: Blow Out
5252
#if( EM_FIELD_SCALE_CHANNEL1 == 5 || EM_FIELD_SCALE_CHANNEL2 == 5 || EM_FIELD_SCALE_CHANNEL3 == 5 )
53-
//PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_plasma_density___change_visualization_param, (BASE_DENSITY>0.0) );
54-
PMACC_DEF_IN_NAMESPACE_MSG( You_can_not_scale_your_preview_to_blowout_with_a_laser_without_beam_waist___change_visualization_param, laserProfile, W0 );
53+
//PMACC_CASSERT_MSG( You_can_not_scale_your_preview_to_a_zero_plasma_density___change_png_param, (BASE_DENSITY>0.0) );
54+
PMACC_DEF_IN_NAMESPACE_MSG( You_can_not_scale_your_preview_to_blowout_with_a_laser_without_beam_waist___change_png_param, laserProfile, W0 );
5555
#endif
5656
}

share/picongpu/examples/Bunch/include/picongpu/param/visColorScales.param

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)