flow past a dolphin

Asked by Achim Schroll

thanks for the dolfin meshes!
when runing the "flow past a dolphin" code copied from the page:
http://fenicsproject.org/featured/2011/pdesys.html
I get the error:

Creating new work vector for up
Adding PDESubSystem: NavierStokes
Adding ['linear_solver']['up'] = lu to pdesubsystem up
Adding ['iteration_type'] = Picard to pdesubsystem up
Traceback (most recent call last):
  File "dolfinflow.py", line 40, in <module>
    NStokes.pdesubsystems['up'] = NavierStokes(vars(NStokes), ['u', 'p'], bcs=bc, reassemble_lhs=False)
  File "/opt/cbc.pdesys/cbc/pdesys/PDESubSystems.py", line 331, in __init__
    self.define()
  File "/opt/cbc.pdesys/cbc/pdesys/PDESubSystems.py", line 337, in define
    self.get_form(form_args)
  File "/opt/cbc.pdesys/cbc/pdesys/PDESubSystems.py", line 301, in get_form
    F = self.form(**form_args)
TypeError: form() takes exactly 10 arguments (9 given)

Could it be that the code copied from the web page is not fully up to date?
I downloaded cbc.PDESys-1.0.0 yesterday and my OS is Ubuntu 12.04.1 LTS.

vh, achim.

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Mikael Mortensen
Solved:
Last query:
Last reply:
Revision history for this message
Best Mikael Mortensen (mikael-mortensen) said :
#1

Hi,

See if this thread https://answers.launchpad.net/cbcpdesys/+question/213341 helps.

Best regards

Mikael

Den Mar 12, 2013 kl. 2:06 PM skrev Achim Schroll:

> New question #224049 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/224049
>
> thanks for the dolfin meshes!
> when runing the "flow past a dolphin" code copied from the page:
> http://fenicsproject.org/featured/2011/pdesys.html
> I get the error:
>
> Creating new work vector for up
> Adding PDESubSystem: NavierStokes
> Adding ['linear_solver']['up'] = lu to pdesubsystem up
> Adding ['iteration_type'] = Picard to pdesubsystem up
> Traceback (most recent call last):
> File "dolfinflow.py", line 40, in <module>
> NStokes.pdesubsystems['up'] = NavierStokes(vars(NStokes), ['u', 'p'], bcs=bc, reassemble_lhs=False)
> File "/opt/cbc.pdesys/cbc/pdesys/PDESubSystems.py", line 331, in __init__
> self.define()
> File "/opt/cbc.pdesys/cbc/pdesys/PDESubSystems.py", line 337, in define
> self.get_form(form_args)
> File "/opt/cbc.pdesys/cbc/pdesys/PDESubSystems.py", line 301, in get_form
> F = self.form(**form_args)
> TypeError: form() takes exactly 10 arguments (9 given)
>
> Could it be that the code copied from the web page is not fully up to date?
> I downloaded cbc.PDESys-1.0.0 yesterday and my OS is Ubuntu 12.04.1 LTS.
>
> vh, achim.
>
> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.

Revision history for this message
Achim Schroll (achim-simula-deactivatedaccount) said :
#2

Thanks Mikael Mortensen, that solved my question.