Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
927725f9
Commit
927725f9
authored
1 year ago
by
Filip Husko
Committed by
Matthieu Schaller
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix jet initial velocities
parent
d9ec45e2
No related branches found
No related tags found
1 merge request
!1764
Fix jet initial velocities
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/black_holes/SPIN_JET/black_holes_iact.h
+4
-2
4 additions, 2 deletions
src/black_holes/SPIN_JET/black_holes_iact.h
with
4 additions
and
2 deletions
src/black_holes/SPIN_JET/black_holes_iact.h
+
4
−
2
View file @
927725f9
...
@@ -1014,8 +1014,10 @@ runner_iact_nonsym_bh_gas_feedback(
...
@@ -1014,8 +1014,10 @@ runner_iact_nonsym_bh_gas_feedback(
vel_kick_direction
[
1
]
=
direction
*
bi
->
jet_direction
[
1
];
vel_kick_direction
[
1
]
=
direction
*
bi
->
jet_direction
[
1
];
vel_kick_direction
[
2
]
=
direction
*
bi
->
jet_direction
[
2
];
vel_kick_direction
[
2
]
=
direction
*
bi
->
jet_direction
[
2
];
/* Get the initial velocity */
/* Get the initial velocity in the frame of the black hole */
const
float
v_init
[
3
]
=
{
xpj
->
v_full
[
0
],
xpj
->
v_full
[
1
],
xpj
->
v_full
[
2
]};
const
float
v_init
[
3
]
=
{
xpj
->
v_full
[
0
]
-
bi
->
v
[
0
],
xpj
->
v_full
[
1
]
-
bi
->
v
[
1
],
xpj
->
v_full
[
2
]
-
bi
->
v
[
2
]};
/* We compute this final velocity by requiring that the final energy and
/* We compute this final velocity by requiring that the final energy and
* the inital one differ by the energy received by the particle, i.e.
* the inital one differ by the energy received by the particle, i.e.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment