[FLASH-USERS] Particles Unit
Norbert Flocke
flocke at flash.uchicago.edu
Thu Nov 14 10:33:23 EST 2019
Hi Ryunosuke,
As I mentioned before, running particles unit and laser unit together can
create problems, as both use the grid particles unit. However, the grid
particles unit uses fixed precompiled dimensions for its buffer arrays.
Please have a look at the gr_ptInit.F90 code and the comments there.
The error message you are seeing is a consequence of the fixed buffer
dimensions.
For a solution to this problem in your case, go to the FLASH directory:
source/physics/sourceTerms/EnergyDeposition/EnergyDepositionMain/Laser
and edit the file 'EnergyDeposition.h'. Change the RAY_ATTR_COUNT entry
(that is currently set to 16) to 35. This will not change the laser code,
but will make it use twice as much memory as before. If you are not using
many laser rays in your beams this should be ok. If you are using millions
or rays, you will see performance degradation.
Best,
Norbert
On Thu, 14 Nov 2019, æ»~]æ²¢é¾~Mä¹~Kä»~K wrote:
> Hi, Norbert and Ryan,
>
> Thank you for answering my question.
> After adding below and not using +laser, I could success to compile.
>
> REQUIRES Particles
> REQUIRES Particles/localAPI
> REQUIRES physics/sourceTerms/EnergyDeposition/EnergyDepositionMain/Laser
>
> But error has been occurred.
>
> [ 11-14-2019 03:14:53.600 ] [amr_set_runtime_parameters] NOTE: Enabling curvilinear suppport because of the selected geometry
> [ 11-14-2019 03:14:55.912 ] [gr_initGeometry] checking BCs for idir: 1
> [ 11-14-2019 03:14:55.915 ] [gr_initGeometry] checking BCs for idir: 2
> [ 11-14-2019 03:14:55.918 ] [gr_ptInit]: Value of RAY_ATTR_COUNT is =: 16
> [ 11-14-2019 03:14:55.920 ] [gr_ptInit]: Value of propCount is =: 35
> Different 1st dimensions for Destination and Source Buffer!
> [ 11-14-2019 03:14:55.925 ] [DRIVER_ABORT]: Driver_abort() called by PE 0
> [ 11-14-2019 03:14:55.928 ] abort_message: [gr_ptInit]: RAY_ATTR_COUNT must match propCount (see Logfile).
>
> Is it impossible to use Particles Unit with Energy Deposition Unit?
>
> Thanks,
> Ryunosuke
> --------------------------------------------
> Ryunosuke Takizawa
>
> Institute of Laser Engineering, Osaka University
>
> 2-6 Yamada-oka, Suita, Osaka, 565-0871, Japan
>
> E-mail: takizawa-r at ile.osaka-u.ac.jp
>
>> On Nov 14, 2019, at 0:10, Norbert Flocke <flocke at flash.uchicago.edu> wrote:
>>
>> Hello Ryan and Ryunosuke,
>>
>> You should also include 'REQUIRES Particles' into your Config file, as this also automatically includes the Particles/localAPI directory, where the pt_interface.F90 source code is located. From your current Config file the Particles/localAPI directory is never reached and hence you don't have the compiled pt_interface.mod file.
>>
>> Also, on a side note, be in for surprises when activating the Particles and Energy Deposition units at the same time. The +laser setup shortcut contains an explicit -without-unit=Particles statement, so there can be some issues when having Particles and Grid/Particles activated at the same time.
>>
>> Best,
>> Norbert
>>
>>
>> On Tue, 12 Nov 2019, Ryan Farber wrote:
>>
>>> Hi Ryunosuke,
>>>
>>> Which file gave your compilation error? Was it a file that you wrote?
>>>
>>> You can check if pt_interface.F90 is in your object directory. If it is
>>> not, you can go into /PATH_TO_FLASH/source/Particles and do "find . -name
>>> pt_interface.F90" to find all versions of that file.
>>>
>>> That may indicate what other REQUIRES/REQUESTS to add to your Config file.
>>> You can also copy pt_interface.F90 to your problem directory, especially if
>>> you want to modify it.
>>>
>>> Best,
>>> --------
>>> Ryan
>>>
>>>
>>> On Sun, Nov 3, 2019 at 9:15 PM æ»æ²¢é¾ä¹ä» <ryunosukeway at icloud.com> wrote:
>>>
>>>> Hi flash-users,
>>>>
>>>> I'm trying to use Particles Unit for calculating electric field and charge
>>>> density generated by laser ablation plasma. And I have modified LaserSlab
>>>> by adding declaration in Config file below.
>>>>
>>>> PARTICLETYPE active INITMETHOD lattice MAPMETHOD quadratic ADVMETHOD
>>>> Leapfrog
>>>> REQUIRES Particles/ParticlesMain
>>>> REQUIRES Particles/ParticlesMain/active/massive/Leapfrog
>>>> REQUESTS Particles/ParticlesMapping/Quadratic
>>>> REQUESTS Particles/ParticlesInitialization/Lattice
>>>> REQUESTS IO/IOMain/
>>>> REQUESTS IO/IOParticles
>>>> REQUESTS Particles/ParticlesForces/longRange
>>>> REQUIRES Grid/GridParticles
>>>>
>>>> But there is a compile error below.
>>>>
>>>> use pt_interface, ONLY : pt_initFinalize
>>>> 1
>>>> Fatal Error: Can't open module file 'pt_interface.mod' for reading at (1):
>>>> No such file or directory
>>>>
>>>> Please teach me how to solve this problem. Iâm sorry for a fundamental
>>>> question.
>>>>
>>>> Thanks,
>>>> --------------------------------------------
>>>> Ryunosuke Takizawa
>>>>
>>>> Institute of Laser Engineering, Osaka University
>>>>
>>>> 2-6 Yamada-oka, Suita, Osaka, 565-0871, Japan
>>>>
>>>> E-mail: takizawa-r at ile.osaka-u.ac.jp
>>>>
>>>>
>
More information about the flash-users
mailing list