Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LatticePhysical Class Reference

#include <G4LatticePhysical.hh>

Public Member Functions

 G4LatticePhysical (const G4LatticeLogical *Lat=nullptr, const G4RotationMatrix *Rot=nullptr)
 
virtual ~G4LatticePhysical ()=default
 
void SetVerboseLevel (G4int vb)
 
G4double MapKtoV (G4int, G4ThreeVector) const
 
G4ThreeVector MapKtoVDir (G4int, G4ThreeVector) const
 
void SetLatticeLogical (const G4LatticeLogical *Lat)
 
void SetPhysicalOrientation (const G4RotationMatrix *Rot)
 
void SetLatticeOrientation (G4double, G4double)
 
void SetMillerOrientation (G4int, G4int, G4int)
 
const G4LatticeLogicalGetLattice () const
 
G4double GetScatteringConstant () const
 
G4double GetAnhDecConstant () const
 
G4double GetLDOS () const
 
G4double GetSTDOS () const
 
G4double GetFTDOS () const
 
G4double GetBeta () const
 
G4double GetGamma () const
 
G4double GetLambda () const
 
G4double GetMu () const
 
G4ThreeVector RotateToGlobal (const G4ThreeVector &dir) const
 
G4ThreeVector RotateToLocal (const G4ThreeVector &dir) const
 

Detailed Description

Definition at line 39 of file G4LatticePhysical.hh.

Constructor & Destructor Documentation

◆ G4LatticePhysical()

G4LatticePhysical::G4LatticePhysical ( const G4LatticeLogical * Lat = nullptr,
const G4RotationMatrix * Rot = nullptr )

Definition at line 48 of file G4LatticePhysical.cc.

49 : fLattice(Lat)
50{
52}
void SetPhysicalOrientation(const G4RotationMatrix *Rot)

◆ ~G4LatticePhysical()

virtual G4LatticePhysical::~G4LatticePhysical ( )
virtualdefault

Member Function Documentation

◆ GetAnhDecConstant()

G4double G4LatticePhysical::GetAnhDecConstant ( ) const
inline

Definition at line 61 of file G4LatticePhysical.hh.

61{ return fLattice->GetAnhDecConstant(); }
G4double GetAnhDecConstant() const

Referenced by G4PhononDownconversion::GetMeanFreePath().

◆ GetBeta()

G4double G4LatticePhysical::GetBeta ( ) const
inline

Definition at line 65 of file G4LatticePhysical.hh.

65{ return fLattice->GetBeta(); }
G4double GetBeta() const

Referenced by G4PhononDownconversion::PostStepDoIt().

◆ GetFTDOS()

G4double G4LatticePhysical::GetFTDOS ( ) const
inline

Definition at line 64 of file G4LatticePhysical.hh.

64{ return fLattice->GetFTDOS(); }
G4double GetFTDOS() const

Referenced by G4PhononScattering::PostStepDoIt().

◆ GetGamma()

G4double G4LatticePhysical::GetGamma ( ) const
inline

Definition at line 66 of file G4LatticePhysical.hh.

66{ return fLattice->GetGamma(); }
G4double GetGamma() const

Referenced by G4PhononDownconversion::PostStepDoIt().

◆ GetLambda()

G4double G4LatticePhysical::GetLambda ( ) const
inline

Definition at line 67 of file G4LatticePhysical.hh.

67{ return fLattice->GetLambda(); }
G4double GetLambda() const

Referenced by G4PhononDownconversion::PostStepDoIt().

◆ GetLattice()

const G4LatticeLogical * G4LatticePhysical::GetLattice ( ) const
inline

Definition at line 58 of file G4LatticePhysical.hh.

58{ return fLattice; }

◆ GetLDOS()

G4double G4LatticePhysical::GetLDOS ( ) const
inline

Definition at line 62 of file G4LatticePhysical.hh.

62{ return fLattice->GetLDOS(); }
G4double GetLDOS() const

Referenced by G4PhononScattering::PostStepDoIt().

◆ GetMu()

G4double G4LatticePhysical::GetMu ( ) const
inline

Definition at line 68 of file G4LatticePhysical.hh.

68{ return fLattice->GetMu(); }
G4double GetMu() const

Referenced by G4PhononDownconversion::PostStepDoIt().

◆ GetScatteringConstant()

G4double G4LatticePhysical::GetScatteringConstant ( ) const
inline

Definition at line 60 of file G4LatticePhysical.hh.

60{ return fLattice->GetScatteringConstant(); }
G4double GetScatteringConstant() const

Referenced by G4PhononScattering::GetMeanFreePath().

◆ GetSTDOS()

G4double G4LatticePhysical::GetSTDOS ( ) const
inline

Definition at line 63 of file G4LatticePhysical.hh.

63{ return fLattice->GetSTDOS(); }
G4double GetSTDOS() const

Referenced by G4PhononScattering::PostStepDoIt().

◆ MapKtoV()

G4double G4LatticePhysical::MapKtoV ( G4int polarizationState,
G4ThreeVector k ) const

Definition at line 99 of file G4LatticePhysical.cc.

100{
101 if (verboseLevel > 1) {
102 G4cout << "G4LatticePhysical::MapKtoV " << k << G4endl;
103 }
104
105 k.rotate(yhat, fTheta).rotate(zhat, fPhi);
106 return fLattice->MapKtoV(polarizationState, k);
107}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotate(double, const Hep3Vector &)
virtual G4double MapKtoV(G4int, const G4ThreeVector &) const

Referenced by G4VPhononProcess::CreateSecondary(), G4LatticeManager::MapKtoV(), and G4PhononReflection::PostStepDoIt().

◆ MapKtoVDir()

G4ThreeVector G4LatticePhysical::MapKtoVDir ( G4int polarizationState,
G4ThreeVector k ) const

Definition at line 112 of file G4LatticePhysical.cc.

113{
114 if (verboseLevel > 1) {
115 G4cout << "G4LatticePhysical::MapKtoVDir " << k << G4endl;
116 }
117
118 k.rotate(yhat, fTheta).rotate(zhat, fPhi);
119
120 G4ThreeVector VG = fLattice->MapKtoVDir(polarizationState, k);
121
122 return VG.rotate(zhat, -fPhi).rotate(yhat, -fTheta);
123}
virtual G4ThreeVector MapKtoVDir(G4int, const G4ThreeVector &) const

Referenced by G4VPhononProcess::CreateSecondary(), and G4LatticeManager::MapKtoVDir().

◆ RotateToGlobal()

G4ThreeVector G4LatticePhysical::RotateToGlobal ( const G4ThreeVector & dir) const

Definition at line 128 of file G4LatticePhysical.cc.

129{
130 if (verboseLevel > 1) {
131 G4cout << "G4LatticePhysical::RotateToGlobal " << dir << "\nusing fLocalToGlobal "
132 << fLocalToGlobal << G4endl;
133 }
134
135 G4ThreeVector result = fLocalToGlobal * dir;
136 if (verboseLevel > 1) {
137 G4cout << " result " << result << G4endl;
138 }
139
140 return result;
141}

Referenced by G4VPhononProcess::CreateSecondary().

◆ RotateToLocal()

G4ThreeVector G4LatticePhysical::RotateToLocal ( const G4ThreeVector & dir) const

Definition at line 143 of file G4LatticePhysical.cc.

144{
145 if (verboseLevel > 1) {
146 G4cout << "G4LatticePhysical::RotateToLocal " << dir << "\nusing fGlobalToLocal "
147 << fGlobalToLocal << G4endl;
148 }
149
150 G4ThreeVector result = fGlobalToLocal * dir;
151 if (verboseLevel > 1) {
152 G4cout << " result " << result << G4endl;
153 }
154
155 return result;
156}

◆ SetLatticeLogical()

void G4LatticePhysical::SetLatticeLogical ( const G4LatticeLogical * Lat)
inline

Definition at line 52 of file G4LatticePhysical.hh.

52{ fLattice = Lat; }

◆ SetLatticeOrientation()

void G4LatticePhysical::SetLatticeOrientation ( G4double t_rot,
G4double p_rot )

Definition at line 73 of file G4LatticePhysical.cc.

74{
75 fTheta = t_rot;
76 fPhi = p_rot;
77
78 if (verboseLevel != 0) {
79 G4cout << "G4LatticePhysical::SetLatticeOrientation " << fTheta << " " << fPhi << G4endl;
80 }
81}

◆ SetMillerOrientation()

void G4LatticePhysical::SetMillerOrientation ( G4int l,
G4int k,
G4int n )

Definition at line 84 of file G4LatticePhysical.cc.

85{
86 fTheta = halfpi - std::atan2(n + 0.000001, l + 0.000001);
87 fPhi = halfpi - std::atan2(l + 0.000001, k + 0.000001);
88
89 if (verboseLevel != 0) {
90 G4cout << "G4LatticePhysical::SetMillerOrientation(" << l << k << n << ") : " << fTheta << " "
91 << fPhi << G4endl;
92 }
93}

◆ SetPhysicalOrientation()

void G4LatticePhysical::SetPhysicalOrientation ( const G4RotationMatrix * Rot)

Definition at line 55 of file G4LatticePhysical.cc.

56{
57 if (Rot == nullptr) { // No orientation specified
58 fLocalToGlobal = fGlobalToLocal = G4RotationMatrix::IDENTITY;
59 }
60 else {
61 fLocalToGlobal = fGlobalToLocal = *Rot; // Frame rotation
62 fGlobalToLocal.invert();
63 }
64
65 if (verboseLevel != 0) {
66 G4cout << "G4LatticePhysical::SetPhysicalOrientation " << *Rot
67 << "\nfLocalToGlobal: " << fLocalToGlobal << "\nfGlobalToLocal: " << fGlobalToLocal
68 << G4endl;
69 }
70}
static DLL_API const HepRotation IDENTITY
Definition Rotation.h:366
HepRotation & invert()

Referenced by G4LatticePhysical().

◆ SetVerboseLevel()

void G4LatticePhysical::SetVerboseLevel ( G4int vb)
inline

Definition at line 46 of file G4LatticePhysical.hh.

46{ verboseLevel = vb; }

The documentation for this class was generated from the following files: