forked from ComputationalRadiationPhysics/picongpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
visualization.param
84 lines (70 loc) · 2.73 KB
/
visualization.param
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
* Copyright 2013 Heiko Burau, Richard Pausch
*
* This file is part of PIConGPU.
*
* PIConGPU is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PIConGPU is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PIConGPU.
* If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <cmath>
#include "basicOperations.hpp"
namespace picongpu
{
/*scale image before write to file, only scale if value is not 1.0
*/
const double scale_image = 1.0;
/*if true image is scaled if cellsize is not quadratic, else no scale*/
const bool scale_to_cellsize = true;
const bool white_box_per_GPU = true;
namespace visPreview
{
// normalize EM fields to typical laser or plasma quantities
//-1: Auto: enable adaptive scaling for each output
// 1: Laser: typical fields calculated out of the laser amplitude
// 2: Drift: typical fields caused by a drifting plasma
// 3: PlWave: typical fields calculated out of the plasma freq.,
// assuming the wave moves approx. with c
// 4: Thermal: typical fields calculated out of the electron temperature
// 5: BlowOut: typical fields, assuming that a LWFA in the blowout
// regime causes a bubble with radius of approx. the laser's
// beam waist (use for bubble fields)
#define EM_FIELD_SCALE_CHANNEL1 1
#define EM_FIELD_SCALE_CHANNEL2 1
#define EM_FIELD_SCALE_CHANNEL3 1
// multiply highest undisturbed particle density with factor
const float_X preParticleDens_opacity = 0.25;
const float_X preChannel1_opacity = 1.0;
const float_X preChannel2_opacity = 1.0;
const float_X preChannel3_opacity = 1.0;
// specify color scales for each channel
namespace preParticleDensCol = colorScales::red;
namespace preChannel1Col = colorScales::blue;
namespace preChannel2Col = colorScales::green;
namespace preChannel3Col = colorScales::none;
/* png preview and liveview settings for each channel */
DINLINE float_X preChannel1(const float3_X& field_B, const float3_X& field_E, const float3_X& field_J)
{
return math::abs2(field_J);
}
DINLINE float_X preChannel2(const float3_X& field_B, const float3_X& field_E, const float3_X& field_J)
{
return field_E.x() * field_E.x();
}
DINLINE float_X preChannel3(const float3_X& field_B, const float3_X& field_E, const float3_X& field_J)
{
return -float_X(1.0) * field_E.y();
}
}
}