Skip to content

add phase to all laser implementations#708

Merged
ax3l merged 13 commits into
ComputationalRadiationPhysics:devfrom
PrometheusPi:topic-phaseToPlaneWave
Mar 26, 2015
Merged

add phase to all laser implementations#708
ax3l merged 13 commits into
ComputationalRadiationPhysics:devfrom
PrometheusPi:topic-phaseToPlaneWave

Conversation

@PrometheusPi
Copy link
Copy Markdown
Member

This pull request adds a phase to all laser implementation thus allowing to run simulations suggested by @ssstuvz.

ToDo:
check if setting phase works for:

  • laserGaussianBeam
  • laserPlaneWave
  • laserPolynom
  • laserPulseFrontTilt
  • laserWavepacket

@ax3l:
This pull request adjusts:

  • laserConfig.unitless
  • laserConfig.param

and thus needs an entry to the CHANGELOG.md after it is merged to master.

@PrometheusPi PrometheusPi added the refactoring code change to improve performance or to unify a concept but does not change public API label Feb 16, 2015
@PrometheusPi PrometheusPi added this to the Open Beta milestone Feb 16, 2015
@ax3l ax3l self-assigned this Feb 16, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it does not have a unit, do not "fake convert" it. -> no entry necessary.

@ax3l
Copy link
Copy Markdown
Member

ax3l commented Feb 18, 2015

@PrometheusPi suggested a better refactoring to add a general support where and how to define the phase of a laser.

@ax3l
Copy link
Copy Markdown
Member

ax3l commented Mar 9, 2015

@PrometheusPi close as outdated for now? If I remember correctly, you wanted to give it a fresh start.

@PrometheusPi
Copy link
Copy Markdown
Member Author

We can close or keep it. I will overwrite the last commits anyway. Keep it, so I have a more urgent reminder 😁

@ax3l
Copy link
Copy Markdown
Member

ax3l commented Mar 9, 2015

ok, fine with me :)
just re-assign me when there is something to do.

@ax3l ax3l removed their assignment Mar 9, 2015
@PrometheusPi PrometheusPi force-pushed the topic-phaseToPlaneWave branch from 55fb3e6 to 3a24663 Compare March 23, 2015 17:01
@PrometheusPi PrometheusPi changed the title add phase to plane wave add phase to all laser implementations Mar 23, 2015
@PrometheusPi
Copy link
Copy Markdown
Member Author

added an implementation for all lasers

@ax3l
Copy link
Copy Markdown
Member

ax3l commented Mar 24, 2015

added wait-4-author label since todo check if it is working as expected is still open :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't that be a += ?
you are going to overwrite the input parameter by that (even if it is zero by default).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I did this on purpose to avoid any conflict wheter one should set the pase in laserConfig.param or in the laser implementation.

Why do we use this reference approach anyways?

I thought wait-4-author/WIP is only needed if it is not obvious that you still need feedback. (Checklist still not complete was obvious enough for me.) 😄

@PrometheusPi
Copy link
Copy Markdown
Member Author

Tests were successful:

I used the PIConGPU example LaserWakefield with no particles to simulate all lasers.
It is a 3D (192,1024,192) simulation with LASER_PHASE beeing 0and 3.1415 for all lasers with otherwise default setup.
The Field shown is f["/data/{}/fields/FieldE/x".format(timestep)][96,:,96].

laserGaussianBeam:
gaussian

laserPlaneWave:
planewave

laserPolynom:
polynom

laserPulseFrontTilt:
pulsefronttilt

laserWavepacket:
wavepacket

@ax3l ax3l self-assigned this Mar 24, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since LASER_PHASE is already float_X that line should be

phase += float_X(w * runTime) + LASER_PHASE;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, I will fix that.

@PrometheusPi PrometheusPi force-pushed the topic-phaseToPlaneWave branch from b7031a3 to 326eb0c Compare March 24, 2015 17:15
@ax3l
Copy link
Copy Markdown
Member

ax3l commented Mar 24, 2015

btw: tests look good, well done! 👍

@ax3l ax3l mentioned this pull request Mar 24, 2015
@PrometheusPi
Copy link
Copy Markdown
Member Author

I will remove wait for autor/WIP and set wait for assignee/WIP 😝

ax3l added a commit that referenced this pull request Mar 26, 2015
add phase to all laser implementations
@ax3l ax3l merged commit 6f3c655 into ComputationalRadiationPhysics:dev Mar 26, 2015
@PrometheusPi PrometheusPi deleted the topic-phaseToPlaneWave branch March 27, 2015 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring code change to improve performance or to unify a concept but does not change public API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants