I have difficulty to get CBC.RANS to run on newly installed FEniCS.
I am running DOLFIN 1.2.0 and latest CBCPDESys revno 102.
Here is how I installed the software. On July 20, 2013, I got the CBS.PDESYS through bzr branch lp:cbcpdesys
. I assume that it is the development focus branch. On the same day, I also installed the FEniCS on Ubuntu through sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install fenics
sudo apt-get dist-upgrade
.
I could run /pdesys/demo/CahnHilliard_demo.py, but could not run /pdesys/demo/Stokes_demo.py. It gave me the following error:
`
This demo is unlikely to converge if PETSc is not configured with Hypre or ML.
Ordering mesh.
Elapsed time: 0.00400009 (generate unit cube mesh)
*** -------------------------------------------------------------------------
*** Warning: UnitCube has been deprecated in DOLFIN version 1.1.0.
*** The class UnitCube has been replaced by UnitCubeMesh.
*** -------------------------------------------------------------------------
Traceback (most recent call last):
File "Stokes_demo.py", line 76, in <module>
solver = Stokes_Solver(mesh, solver_parameters)
File "Stokes_demo.py", line 30, in __init__
PDESystem.__init__(self, [['u', 'p']], mesh, parameters)
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/pdesys/PDESystem.py", line 110, in __init__
self.setup()
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/pdesys/PDESystem.py", line 119, in setup
for bc in self.problem.boundaries:
AttributeError: 'NoneType' object has no attribute 'boundaries'
'
When I ran /ransmodels/demo/turbulent-channel.py, it gives me the following error message:
`
Traceback (most recent call last):
File "turbulent_channel.py", line 107, in <module>
model=problem_parameters['turbulence_model'])
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/cfd/ransmodels/StandardKE_Coupled.py", line 20, in __init__
parameters=parameters)
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/cfd/ransmodels/TurbSolver.py", line 20, in __init__
PDESystem.__init__(self, system_composition, problem, parameters)
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/pdesys/PDESystem.py", line 110, in __init__
self.setup()
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/cfd/ransmodels/TurbSolver.py", line 30, in setup
self.bc = self.create_BCs(self.boundaries)
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/cfd/ransmodels/StandardKE_Coupled.py", line 27, in create_BCs
bcu['ke'].insert(i+1, QWall['ke'](self.V['ke'], bc, self.y, self.nu(0)))
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/cfd/tools/Wall.py", line 267, in __init__
Wallfunction.__init__(self, V, bc)
File "/home/xiaoping/Dropbox/Linux/cbc072013/cbcpdesys/cbc/cfd/tools/Wall.py", line 60, in __init__
dofs[-1].difference_update(off_dofs.keys())
AttributeError: 'SwigPyObject' object has no attribute 'keys'
`
Similar errors occurs for other two RANS demos. Any thought on how to get this thing to work?
Can anyone could tell me which version of PDESys and which version of dolfin to use so they can work together? Also, how do I get the particular versions of the software?
Thanks,
Xiaoping.