Burgers equation tutorial #2585
Unanswered
miguelmoyers
asked this question in
Firedrake support
Replies: 1 comment 1 reply
-
Hi Miguel,
as_vector turns a list of expressions into a UFL symbolic representation of a vector field with the list contents given the Cartesian components.
all the best
cjc
On 14 Oct 2022, at 07:42, miguelmoyers ***@***.***> wrote:
Hello All,
I am a complete novice to Firedrake. I just installed it yesterday. I want to use it for one of my courses. I've been working through the tutorials and I ran into some issues. In the Burgers equation one, I changed the initial condition to ic = project(as_vector((sin(2pix[0])+0.5sin(pix[0]), 0)), V). For some reason, I get the absolute value of the function. Am I missing something? What is as_vector() doing? I've been at it for a couple of hours and cannot find anything online. Sorry if it is a very simple question.
Thank you for your help.
Miguel
—
Reply to this email directly, view it on GitHub<#2585>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABOSV4TEJTQR7YIT3QDJVMDWDD6FXANCNFSM6AAAAAARE54YWU>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I am a complete novice to Firedrake. I just installed it yesterday. I want to use it for one of my courses. I've been working through the tutorials and I ran into some issues. In the Burgers equation one, I changed the initial condition to ic = project(as_vector((sin(2pix[0])+0.5sin(pix[0]), 0)), V). For some reason, I get the absolute value of the function. Am I missing something? What is as_vector() doing? I've been at it for a couple of hours and cannot find anything online. Sorry if it is a very simple question.
Thank you for your help.
Miguel
Beta Was this translation helpful? Give feedback.
All reactions