Can someone please point me to where I can download the cbc (twist) module.

Asked by Scott Richardson

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Scott Richardson
Solved:
Last query:
Last reply:
Revision history for this message
Kent-Andre Mardal (kent-and) said :
#1

https://launchpad.net/cbc.solve

Kent

On 18 June 2012 19:36, Scott Richardson <
<email address hidden>> wrote:

> New question #200808 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/200808
>
> Thank you.
>
> --
> 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
Scott Richardson (scott-richardson-personal) said :
#2

Hi Kent, thank you. Would you be kind enough to tell me how to install this? I downloaded and unpacked php-crypt-cbc-1.0.0.1 and I'm afraid I don't quite know what to do with it now. I apologize for my NOOB(iness)! I am running on the latest version of Ubuntu.

Revision history for this message
Kent-Andre Mardal (kent-and) said :
#3

do
   bzr branch lp:cbc.solve

On 18 June 2012 19:56, Scott Richardson <
<email address hidden>> wrote:

> Question #200808 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/200808
>
> Scott Richardson posted a new comment:
> Hi Kent, thank you. Would you be kind enough to tell me how to install
> this? I downloaded and unpacked php-crypt-cbc-1.0.0.1 and I'm afraid I
> don't quite know what to do with it now. I apologize for my
> NOOB(iness)! I am running on the latest version of Ubuntu.
>
> --
> 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
Scott Richardson (scott-richardson-personal) said :
#4

OK that appeared to work fine, but now when I try to run the twist hyperelastic problem (http://harishnarayanan.org/research/automated-mechanics/) i get this:

scottr99@scottr99-HP-Pavilion-dm4-Notebook-PC:~$ python twist.py
Calling FFC just-in-time (JIT) compiler, this may take some time.
Traceback (most recent call last):
  File "twist.py", line 38, in <module>
    u = twist.solve()
  File "/usr/local/lib/python2.7/dist-packages/cbc/twist/problem_definitions.py", line 26, in solve
    self.solver = StaticMomentumBalanceSolver(self, self.parameters["solver_parameters"])
  File "/usr/local/lib/python2.7/dist-packages/cbc/twist/solution_algorithms.py", line 40, in __init__
    vector)
  File "/usr/local/lib/python2.7/dist-packages/cbc/common/CBCSolver.py", line 65, in create_dirichlet_conditions
    error("The number of Dirichlet values does not match the number of Dirichlet boundaries.")
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp.py", line 2236, in error
    return _cpp.error(*args)
RuntimeError: *** Error: The number of Dirichlet values does not match the number of Dirichlet boundaries.

Revision history for this message
Kent-Andre Mardal (kent-and) said :
#5

Do the demos that comes with twist work?

Kent

On 18 June 2012 20:16, Scott Richardson <
<email address hidden>> wrote:

> Question #200808 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/200808
>
> Scott Richardson posted a new comment:
> OK that appeared to work fine, but now when I try to run the twist
> hyperelastic problem (http://harishnarayanan.org/research/automated-
> mechanics/) i get this:
>
> scottr99@scottr99-HP-Pavilion-dm4-Notebook-PC:~$ python twist.py
> Calling FFC just-in-time (JIT) compiler, this may take some time.
> Traceback (most recent call last):
> File "twist.py", line 38, in <module>
> u = twist.solve()
> File
> "/usr/local/lib/python2.7/dist-packages/cbc/twist/problem_definitions.py",
> line 26, in solve
> self.solver = StaticMomentumBalanceSolver(self,
> self.parameters["solver_parameters"])
> File
> "/usr/local/lib/python2.7/dist-packages/cbc/twist/solution_algorithms.py",
> line 40, in __init__
> vector)
> File "/usr/local/lib/python2.7/dist-packages/cbc/common/CBCSolver.py",
> line 65, in create_dirichlet_conditions
> error("The number of Dirichlet values does not match the number of
> Dirichlet boundaries.")
> File "/usr/lib/python2.7/dist-packages/dolfin/cpp.py", line 2236, in error
> return _cpp.error(*args)
> RuntimeError: *** Error: The number of Dirichlet values does not match the
> number of Dirichlet boundaries.
>
> --
> 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
Scott Richardson (scott-richardson-personal) said :
#6

Hi Kent, yes I just ran it. I must have missed something when I copied it. MANY thanks!!!

Revision history for this message
Luis Linares (luis-linares) said :
#7

After doing:

bzr branch lp:cbc.solve

did you do:

sudo python setup.py install?

Revision history for this message
Anders Logg (logg) said :
#8

On Thu, Jun 21, 2012 at 10:31:10AM -0000, Luis Linares wrote:
> Question #200808 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/200808
>
> Luis Linares posted a new comment:
> After doing:
>
> bzr branch lp:cbc.solve
>
> did you do:
>
> sudo python setup.py install?

That is not necessary. Enter the demo directory and read the README
files.

--
Anders

Revision history for this message
Scott Richardson (scott-richardson-personal) said :
#9

Hi, yes CBC twist is working fine now. Thank you very much for your help!