Ejemplo n.º 1
0
        public SpatialVector CalculateMagneticFieldInLCF(
            double properTime_fm,
            double x_fm,
            double y_fm,
            double rapidity,
            double conductivity_MeV
            )
        {
            // Nucleus A is located at negative x and moves in positive z direction
            SpatialVector fieldNucleusA = NucleusEMFA.CalculateMagneticFieldInLCF(
                properTime_fm, x_fm - NucleusPositionA, y_fm, rapidity, conductivity_MeV);

            // Nucleus B is located at positive x and moves in negative z direction
            SpatialVector fieldNucleusB = NucleusEMFB.CalculateMagneticFieldInLCF(
                properTime_fm, x_fm - NucleusPositionB, y_fm, rapidity, conductivity_MeV);

            return(fieldNucleusA + fieldNucleusB);
        }
Ejemplo n.º 2
0
        /********************************************************************************************
        * Public members, functions and properties
        ********************************************************************************************/

        public SpatialVector CalculateElectricField(
            double t_fm,
            double x_fm,
            double y_fm,
            double z_fm,
            double conductivity_MeV
            )
        {
            // Nucleus A is located at negative x and moves in positive z direction
            SpatialVector fieldNucleusA = NucleusEMFA.CalculateElectricField(
                t_fm, x_fm - NucleusPositionA, y_fm, z_fm, conductivity_MeV);

            // Nucleus B is located at positive x and moves in negative z direction
            SpatialVector fieldNucleusB = NucleusEMFB.CalculateElectricField(
                t_fm, x_fm - NucleusPositionB, y_fm, z_fm, conductivity_MeV);

            return(fieldNucleusA + fieldNucleusB);
        }