Error with the Kelvin-Helmholtz instability example

74 views
Skip to first unread message

MODI ATHARVA SOMSHEKHAR

unread,
Jun 7, 2022, 8:56:15 AM6/7/22
to Dedalus Users
I am trying to get started with Dedalus and I have installed the v2.2006 version. I had some problems while running " python3 -m dedalus test " part of the installation but on some light googling I found this was mostly to do with some minimal numpy version compatibility. Nevertheless, I continued with running the Kelvin Helmholtz script and I am getting the following output,

Traceback (most recent call last):
  File "/home/antineutrino03/kel_helm.py", line 48, in <module>
    problem.add_equation("dt(u) + dx(p) - 1/Re*(dx(dx(u)) + dy(uy)) = - u*dx(u) - v*uy")
  File "/home/antineutrino03/anaconda3/envs/dedalus2/lib/python3.10/site-packages/dedalus/core/problems.py", line 131, in add_equation
    self._build_object_forms(temp)
  File "/home/antineutrino03/anaconda3/envs/dedalus2/lib/python3.10/site-packages/dedalus/core/problems.py", line 152, in _build_object_forms
    temp['LHS'] = field.Operand.parse(temp['raw_LHS'], self.namespace, self.domain)
  File "/home/antineutrino03/anaconda3/envs/dedalus2/lib/python3.10/site-packages/dedalus/tools/cache.py", line 29, in __get__
    attribute = self.method(instance)
  File "/home/antineutrino03/anaconda3/envs/dedalus2/lib/python3.10/site-packages/dedalus/core/problems.py", line 172, in namespace
    namespace[var] = self.domain.new_field(name=var)
  File "/home/antineutrino03/anaconda3/envs/dedalus2/lib/python3.10/site-packages/dedalus/core/problems.py", line 37, in __setitem__
    raise SymbolicParsingError("Name '{}' is used multiple times.".format(key))
dedalus.tools.exceptions.SymbolicParsingError: Name 'sy' is used multiple times.

Can someone please help me with understanding what this is?

Thanks and regards

Atharva

Keaton Burns

unread,
Jun 7, 2022, 11:27:15 AM6/7/22
to dedalu...@googlegroups.com
Hi Atharva,

Sorry this was a bug in the example that we didn’t catch before the 2.2006 release.  There was a change so that “sy” corresponds to the grid spacing in the y dimension, to be used for CFL calculations, etc., so that was no longer an allowed variable name in v2.2006. If you change the variables “sy” to “Sy” or something else, the example should run.

Best,
-Keaton


The information contained in this electronic communication is intended solely for the individual(s) or entity to which it is addressed. It may contain proprietary, confidential and/or legally privileged information. Any review, retransmission, dissemination, printing, copying or other use of, or taking any action in reliance on the contents of this information by person(s) or entities other than the intended recipient is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us by responding to this email or telephone and immediately and permanently delete all copies of this message and any attachments from your system(s). The contents of this message do not necessarily represent the views or policies of BITS Pilani.

--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/457f411c-d819-436c-979a-0ec9fcc42413n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages