JackHsu
0587d08b01
Had some rough draft of accretion criterion.
2019-08-13 18:31:57 +08:00
JackHsu
927a5e74f2
Made accretion time-dependent now, need to come up with better accretion crition than truelove.
2019-08-13 18:06:29 +08:00
JackHsu
ff59431d65
Added modularized term for accretion range, which is some wave function, and module that'll allow time-dependent accretion.
2019-08-13 17:43:52 +08:00
JackHsu
e7ff447510
Merge branch 'master' into sink_20190723
...
Conflicts:
acc/mhd_solver/stencil_process.sps
I've mannaully resolved the conflict, only that I'm leaving int3 globalVertexIdx as is, as instructed by Miikka.
2019-08-12 14:01:19 +08:00
jpekkila
b53cabbc44
Made the DSL syntax less confusing: Input and output arrays are now ScalarField and VectorFields instead of scalars and vectors. C++ initializers are now also possible, removing the need to declare Fields as int or int3 which was very confusing, like "what, you assing an int value to a real, what the &^%@?"
2019-08-08 21:07:36 +03:00
JackHsu
89128af44b
added update_accretion_buffer.
2019-08-08 15:53:41 +08:00
JackHsu
c1b99b2b37
made step-wise buffer update.
2019-08-08 15:03:42 +08:00
JackHsu
e5540f6278
added some vertex buffer stuff, not completed.
2019-08-08 14:08:42 +08:00
JackHsu
baac7c8d12
Merge branch 'master' into sink_20190723
...
Conflicts:
acc/mhd_solver/stencil_defines.h
src/standalone/simulation.cc
2019-08-08 12:17:28 +08:00
jpekkila
fd94b6321d
Renamed globalGrid.n to globalGridN
2019-08-07 18:16:34 +03:00
jpekkila
10200e4dd5
Merge branch 'master' into node_device_interface_revision_07-23
2019-08-07 16:25:33 +03:00
jpekkila
e2f5cced1e
Renamed dox -> dot
2019-08-07 16:08:03 +03:00
JackHsu
2f14bb2a30
Finished accretion_profile function and started a draft of update_accretion_buffer.
2019-08-07 17:14:26 +08:00
Miikka Vaisala
7e6361a92a
Forcing hotfix.
...
Will need more investigation before scientific runs. Now just something to correct the obvious bug.
2019-08-07 16:04:48 +08:00
JackHsu
3adec853df
made changed to accretion_profile function, still not fully finished but close.
2019-08-07 13:59:12 +08:00
jpekkila
a930864f42
Merge branch 'master' into node_device_interface_revision_07-23
2019-08-07 07:43:28 +03:00
JackHsu
2a26b58c38
Attempted to add accretion_profile function, and made it adjustable within astaroth.conf
2019-08-07 11:21:24 +08:00
Miikka Vaisala
e199ca196d
Merge branch 'master' into sink_20190723
2019-08-07 10:46:23 +08:00
jpekkila
a6fca069a7
Added a comment about helical forcing
2019-08-06 19:47:03 +03:00
jpekkila
3726847683
Made globalGridN and d_multigpu_offsets built-in parameters. Note the renaming from globalGrid.n to globalGridN.
2019-08-06 16:39:15 +03:00
JackHsu
aebf4f11ae
Added function for truelove-density, and took out the unecessary use of switch on-off module for accretion.
2019-08-06 16:17:11 +08:00
JackHsu
632819764e
Some intuitions about accretion process. Also defined as a module.
2019-08-06 11:47:55 +08:00
JackHsu
29d6a9b00a
Fixed scaling for sink particle, and added softening factor.
2019-08-01 16:33:58 +08:00
Miikka Vaisala
718a275bcf
Proiper softening factor
2019-08-01 14:12:21 +08:00
JackHsu
24a56044f0
Fixed gravitating particle.
2019-07-31 17:07:05 +08:00
JackHsu
5361ee5706
Fixed gravitational force inputs.
2019-07-31 17:07:04 +08:00
JackHsu
34573d7d63
Corrected acciden removal.
2019-07-30 13:32:44 +08:00
JackHsu
a6dcee2381
Forgot to use lengh() instead of dlength_vec().
2019-07-30 11:50:20 +08:00
JackHsu
0acf52d1b4
Fixed some syntax errors and changed LGRAVITY to LSINK. Will test if this works later.
2019-07-30 11:47:18 +08:00
JackHsu
e7a2734ab6
reparied a delection I did by mistake.
2019-07-29 18:06:57 +08:00
JackHsu
820132cfe9
I attemped to write a complete LSINK module. Haven't tested how it works but just serve as a save point.
2019-07-29 17:53:04 +08:00
JackHsu
d1ca196ccd
Added declaration of constants for sink particle. Still in the process of understanding how values are passed, but I've realized how physical equations are defined in stencil_process.sps and in principle I can replicate that for sink particle(which will mostly be gravity).
2019-07-29 13:18:24 +08:00
jpekkila
acc53e1c2b
Merged master to acc_parameter_overhaul
2019-07-03 17:37:37 +03:00
jpekkila
81a09501b8
Removed deprecated LNT0 and LNRHO0 defines, now the actual configuration parameters are used (AC_lnrho0 and AC_lnT0). Also accidental autoformatting again, there seems to be stray spaces before linebreaks in some files which get automatically removed by my text editor
2019-07-03 17:23:37 +03:00
Miikka Vaisala
98713ff9d2
A possible bug note added. Will look into late.
2019-07-03 14:49:10 +08:00
Miikka Vaisala
334ff868d9
Forcing disabled from autotest and from defaults.
...
It is not suitable function of the autotest tool. If there in really a
mandatory need to add it. I will need special help from Johannes.
2019-07-02 18:46:04 +08:00
Miikka Vaisala
4766441ffb
Tryin to prepare autotest for forcing.
2019-07-02 18:24:41 +08:00
Miikka Vaisala
03689709df
Merge branch 'master' into forcing
2019-07-02 16:43:10 +08:00
jpekkila
1e6740f999
Added the equations for hydro only for both CPU and GPU. NOTE: NOT RIGOROUSLY CHECKED FOR CORRECTNESS. I just took the equations used with entropy and removed the terms which included entropy and magnetic fields
2019-07-01 18:56:13 +03:00
jpekkila
21e9fc943b
Removed all defines from the stencil assembly and processing files and moved them to the new stencil_defines header. There were spaces after some linebreaks which were removed when I autoformatted the code and that's why there seems to be more changes that there actually is.
2019-07-01 18:40:13 +03:00
jpekkila
d9be66f65f
NOTE: Renamed LINDUCTION to LMAGNETIC throughout the project.
2019-07-01 13:40:24 +03:00
Miikka Vaisala
0600790f41
Corrected a bug in the timestep and some scaling problems.
...
Now I can reach a saturated stated in forcing without crashing the code.
2019-07-01 14:19:56 +08:00
Miikka Vaisala
9f0be0d9ff
Solved the forcing function boundary problem.
2019-07-01 11:06:42 +08:00
Miikka Vaisala
f04ef8e64c
Forcing function issue not yet fully resolved.
...
Now brain hurs. No more today. Break needed.
2019-06-28 19:23:18 +08:00
Miikka Vaisala
94a25383a9
Trying to calculate the forcing scaling.
...
Causes nans very quickly. Will need to look closer tomorrow again.
2019-06-27 19:20:18 +08:00
jpekkila
ffe9df1bb0
LFORCING was turned off in stencil_process and the autotests failed, re-enabled
2019-06-26 14:08:56 +03:00
Miikka Vaisala
be0e46c814
Can move forcing vector information now from the host to device.
...
next step in to generate random waves in the CPU with a chosen degree of helicity etc.
2019-06-26 17:41:39 +08:00
Miikka Vaisala
231a8aa06e
Trying to figure out how to upload values to GPU.
2019-06-26 15:23:46 +08:00
Miikka Vaisala
5cacda2850
Helical forcing funtion works.
...
But we will need a wavenumber generator to add stochasticity.
2019-06-26 13:15:28 +08:00
Miikka Vaisala
8191c47fa0
Scetching the helical forcing.
...
Not the idead form. Not yet tested.
2019-06-25 19:04:53 +08:00