Dear all, I've been trying to assemble my initial energy to check my initial conditions, E = \int \frac{1}{2 \rho_0}(\rho_0 \underline{u}^2) + \frac{g^2}{2 \rho_0 N^2} ( \rho - \frac{p}{c^2_0} ) ^2 + \frac{ p^2}{2 \rho_0 c^2_0} dx #Initial Energy E_0 = assemble( (0.5*inner((u_),(u_))/r_0 + 0.5*pow(g,2)*( r_ - p_/c_0)**2/(r_0*N) + 0.5* p_**2/(r_0*c_0))*dx ) but I get the following error message pyop2:INFO Compiling wrapper... Traceback (most recent call last): File "compressible.py", line 87, in <module> E_0 = assemble( (0.5*inner((u_),(u_))/r_0 + 0.5*pow(g,2)*( r_ - p_/c_0)**2/(r_0*N) + 0.5* p_**2/(r_0*c_0))*dx ) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 68, in assemble inverse=inverse, nest=nest) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 450, in _assemble return thunk(bcs) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assembly_cache.py", line 350, in inner r = thunk(bcs) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 442, in thunk return result() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 219, in <lambda> result = lambda: tensor.data[0] pyop2:INFO Compiling wrapper... Traceback (most recent call last): File "compressible.py", line 87, in <module> E_0 = assemble( (0.5*inner((u_),(u_))/r_0 + 0.5*pow(g,2)*( r_ - p_/c_0)**2/(r_0*N) + 0.5* p_**2/(r_0*c_0))*dx ) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 68, in assemble inverse=inverse, nest=nest) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 450, in _assemble return thunk(bcs) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assembly_cache.py", line 350, in inner r = thunk(bcs) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 442, in thunk return result() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/firedrake/assemble.py", line 219, in <lambda> result = lambda: tensor.data[0] File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 2741, in data _trace.evaluate(set([self]), set()) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 169, in evaluate comp._run() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 4032, in _run return self.compute() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 4073, in compute fun = self._jitmodule File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/utils.py", line 64, in __get__ obj.__dict__[self.__name__] = result = self.fget(obj) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/sequential.py", line 147, in _jitmodule direct=self.is_direct, iterate=self.iteration_region) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/caching.py", line 203, in __new__ obj = make_obj() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/caching.py", line 193, in make_obj obj.__init__(*args, **kwargs) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/host.py", line 687, in __init__ self.compile() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/host.py", line 785, in compile compiler=compiler.get('name')) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/compilation.py", line 270, in load dll = compiler.get_so(src, extension) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/compilation.py", line 139, in get_so Original error: %s""" % (cc, logfile, errfile, e)) pyop2.exceptions.CompilationError: Command "['mpicc', '-std=c99', '-fPIC', '-Wall', '-g', '-O3', '-fno-tree-vectorize', '-I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/include', '-I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2', '-msse', '-o', '/tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.so.tmp', '/tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.c', '-shared', '-L/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib', '-Wl,-rpath,/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib', '-lpetsc', '-lm']" returned with error. Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err Original error: status 1 invoking 'mpicc -std=c99 -fPIC -Wall -g -O3 -fno-tree-vectorize -I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/include -I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2 -msse -o /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.so.tmp /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.c -shared -L/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib -Wl,-rpath,/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib -lpetsc -lm' File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 2741, in data _trace.evaluate(set([self]), set()) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 169, in evaluate comp._run() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 4032, in _run return self.compute() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/base.py", line 4073, in compute fun = self._jitmodule File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/utils.py", line 64, in __get__ obj.__dict__[self.__name__] = result = self.fget(obj) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/sequential.py", line 147, in _jitmodule direct=self.is_direct, iterate=self.iteration_region) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/caching.py", line 203, in __new__ obj = make_obj() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/caching.py", line 193, in make_obj obj.__init__(*args, **kwargs) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/host.py", line 687, in __init__ self.compile() File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/host.py", line 785, in compile compiler=compiler.get('name')) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/compilation.py", line 270, in load dll = compiler.get_so(src, extension) File "/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2/compilation.py", line 139, in get_so Original error: %s""" % (cc, logfile, errfile, e)) pyop2.exceptions.CompilationError: Command "['mpicc', '-std=c99', '-fPIC', '-Wall', '-g', '-O3', '-fno-tree-vectorize', '-I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/include', '-I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2', '-msse', '-o', '/tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.so.tmp', '/tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.c', '-shared', '-L/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib', '-Wl,-rpath,/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib', '-lpetsc', '-lm']" returned with error. Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err Original error: status 1 invoking 'mpicc -std=c99 -fPIC -Wall -g -O3 -fno-tree-vectorize -I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/include -I/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/PyOP2-0.11.0_397_g9860f8d-py2.7-linux-x86_64.egg/pyop2 -msse -o /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.so.tmp /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.c -shared -L/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib -Wl,-rpath,/home/cserv1_a/apps/install/firedrake/0.12.0/lib64/python2.7/site-packages/petsc/lib -lpetsc -lm' Would this be because my expression and bcs don't match bc I haven't tried that yet, as the current bcs are only placeholders for real expressions later on. thanks Will
Dear William, ...
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
If you were to look in the error files here, I think you'd see the problem. The code inside an Expression uses C syntax, not python syntax. You have various terms like "pi^2". You'll need to either use "pi*pi" or else pow(pi, 2). Cheers, Lawrence
Dear all, I fixed the expressions but Firedrake still does not like it. I've checked the compile error log, /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c: In function ‘expression_kernel’: /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:35: error: expected ‘)’ before ‘;’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:37: error: expected ‘;’ before ‘}’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:21: warning: unused variable ‘pi’ ~ Will ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> Sent: 11 December 2015 14:06 To: firedrake@imperial.ac.uk Subject: Re: [firedrake] Problems with assembly and expressions Dear William, ...
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
If you were to look in the error files here, I think you'd see the problem. The code inside an Expression uses C syntax, not python syntax. You have various terms like "pi^2". You'll need to either use "pi*pi" or else pow(pi, 2). Cheers, Lawrence
Expression( "exp(-3.0*x[0]" ) You didn't close a bracket. ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of William Booker <scwb@leeds.ac.uk> Sent: 11 December 2015 14:23 To: firedrake Subject: Re: [firedrake] Problems with assembly and expressions Dear all, I fixed the expressions but Firedrake still does not like it. I've checked the compile error log, /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c: In function ‘expression_kernel’: /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:35: error: expected ‘)’ before ‘;’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:37: error: expected ‘;’ before ‘}’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:21: warning: unused variable ‘pi’ ~ Will ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> Sent: 11 December 2015 14:06 To: firedrake@imperial.ac.uk Subject: Re: [firedrake] Problems with assembly and expressions Dear William, ...
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
If you were to look in the error files here, I think you'd see the problem. The code inside an Expression uses C syntax, not python syntax. You have various terms like "pi^2". You'll need to either use "pi*pi" or else pow(pi, 2). Cheers, Lawrence
Hi Will, You're just missing a bracket - hence "error: expected ')'". I think you need another one in your exact_u expression - I didn't check the others. Jemma ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of William Booker <scwb@leeds.ac.uk> Sent: 11 December 2015 14:23 To: firedrake Subject: Re: [firedrake] Problems with assembly and expressions Dear all, I fixed the expressions but Firedrake still does not like it. I've checked the compile error log, /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c: In function ‘expression_kernel’: /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:35: error: expected ‘)’ before ‘;’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:37: error: expected ‘;’ before ‘}’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:21: warning: unused variable ‘pi’ ~ Will ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> Sent: 11 December 2015 14:06 To: firedrake@imperial.ac.uk Subject: Re: [firedrake] Problems with assembly and expressions Dear William, ...
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
If you were to look in the error files here, I think you'd see the problem. The code inside an Expression uses C syntax, not python syntax. You have various terms like "pi^2". You'll need to either use "pi*pi" or else pow(pi, 2). Cheers, Lawrence
Dear all, While I'm checking my expressions for the exact solutions, I've replaced them with constant expressions to test whether my energy assemble and file outputs work. The assemble energy function still does not work and I've included the error message. Outputting my scalar values with density_file << r_ works fine but outputting my vector unknown has proven more difficult. As the following was rejected as it is not currently supported u_u_file << u_.sub(1) I tried just outputting the vector but got this other error message u_w_file << u_ thanks Will ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Shipton, Jemma <j.shipton@imperial.ac.uk> Sent: 11 December 2015 14:27 To: firedrake Subject: Re: [firedrake] Problems with assembly and expressions Hi Will, You're just missing a bracket - hence "error: expected ')'". I think you need another one in your exact_u expression - I didn't check the others. Jemma ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of William Booker <scwb@leeds.ac.uk> Sent: 11 December 2015 14:23 To: firedrake Subject: Re: [firedrake] Problems with assembly and expressions Dear all, I fixed the expressions but Firedrake still does not like it. I've checked the compile error log, /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c: In function ‘expression_kernel’: /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:35: error: expected ‘)’ before ‘;’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:37: error: expected ‘;’ before ‘}’ token /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p11469.c:21: warning: unused variable ‘pi’ ~ Will ________________________________________ From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> Sent: 11 December 2015 14:06 To: firedrake@imperial.ac.uk Subject: Re: [firedrake] Problems with assembly and expressions Dear William, ...
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
Unable to compile code Compile log in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.log Compile errors in /tmp/pyop2-cache-uid368130/13e27493d91e2c8a482fd450a665bf54_p10909.err
If you were to look in the error files here, I think you'd see the problem. The code inside an Expression uses C syntax, not python syntax. You have various terms like "pi^2". You'll need to either use "pi*pi" or else pow(pi, 2). Cheers, Lawrence _______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
On 11 Dec 2015, at 15:14, William Booker <scwb@leeds.ac.uk> wrote:
Dear all,
While I'm checking my expressions for the exact solutions, I've replaced them with constant expressions to test whether my energy assemble and file outputs work.
The assemble energy function still does not work and I've included the error message.
Outputting my scalar values with density_file << r_ works fine but outputting my vector unknown has proven more difficult. As the following was rejected as it is not currently supported u_u_file << u_.sub(1)
Yes, I haven't implemented the kind of indexing necessary to project and output vector components.
I tried just outputting the vector but got this other error message u_w_file << u_
This will work, however, the actual cause of this error is the following: u_.sub(0).interpolate(exact_u) Again, interpolation to indexed pieces of a VectorFunctionSpace is not currently implemented. However, you can instead interpolate a vector-valued Expression to the full Function: u_.interpolate(Expression([component_0, component_1])) Unfortunately we do not currently have documentation in manual for usage of Expressions, your best bet is therefore to read the class docstring: type "help(Expression)" at the python prompt to see this. Cheers, Lawrence
participants (4)
-
Homolya, Miklós
-
Lawrence Mitchell
-
Shipton, Jemma
-
William Booker