如何使用Fenics中的功能?

how to use the function in Fenics?

我有以下关于使用Fenics的问题,即如何正确使用函数“as_tensor”,“as_vector”和“”?每个功能的原始代码是什么(如何打开它)?

例如如果输入是 as_tensor([[1,2],[3,4]]),输出是什么?

可在此处找到文档:https://fenicsproject.org/docs/ufl/1.5.0/ufl.html#ufl.tensors.as_tensor

https://github.com/FEniCS/ufl/blob/master/ufl/tensors.py#L219

中的源代码