LineElement
LineElement[{{i11,i12},…,{in1,in2}}]
represents n linear line elements ek with incidents {ik1,ik2}.
LineElement[{{i11,…,i13},…,{in1,…,in3}}]
represents n quadratic line elements ek with incidents {ik1,ik2,ik3}.
LineElement[{e1,…,en},{m1,…,mn}]
represents n line elements ek and n integer markers mk.
Details and Options
- LineElement is used to represent line mesh elements in ElementMesh.
- LineElement can be used as an input to ToElementMesh or ToBoundaryMesh.
- Incidents ik,j are integers that index an array of spatial coordinates. The coordinates referenced by ek={ik1,…} are the nodes of the k
line.
- The first two incidents ik1 and ik2 are always vertices.
- For quadratic line elements, the third incident is the mid-side node.
- Linear elements are order 1 elements and quadratic elements are order 2 elements.
- In LineElement[{e1,…,en}], all elements ek need to be of the same order.
- The lines in LineElement[{e1,…,en}] will share common nodes but cannot intersect with each other.
- The nodes for a linear and a quadratic line are shown:
- Typically, LineElement is used for one-dimensional regions, but may be embedded in two dimensions, for example, as a part of a boundary mesh.
- The line element is known in the finite element method as a Serendipity element.

Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (1)Survey of the scope of standard use cases
Generalizations & Extensions (4)Generalized and extended use cases
The base coordinates of the linear element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-bdlhqr

The base incidents of the linear element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-e986sw

A mesh with a linear unit element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-yi7d7y

Visualization of the linear unit element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-gr7kca

The base coordinates of the quadratic element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-xkd20r

The base incidents of the quadratic element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-4b03mm


https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-12438n


https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-79tbf8

The base face incidents of the linear element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-gf6ti

The base face incidents of the quadratic element:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-j7cpks

Possible Issues (6)Common pitfalls and unexpected behavior
The incidents must be of the appropriate length:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-lvcvm4


The incidents order cannot be mixed:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-29oxt4


The incidents must be lists of integers:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-cm1i73


The number of markers must match the number of incidents:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-3ab5ie


Markers must be a vector of integers:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-neqwpm


When possible, noninteger markers will be converted to integers:

https://wolfram.com/xid/0bzj9dx865xbrheo3b77m-yp4gm6

Wolfram Research (2014), LineElement, Wolfram Language function, https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html.
Text
Wolfram Research (2014), LineElement, Wolfram Language function, https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html.
Wolfram Research (2014), LineElement, Wolfram Language function, https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html.
CMS
Wolfram Language. 2014. "LineElement." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html.
Wolfram Language. 2014. "LineElement." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html.
APA
Wolfram Language. (2014). LineElement. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html
Wolfram Language. (2014). LineElement. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html
BibTeX
@misc{reference.wolfram_2025_lineelement, author="Wolfram Research", title="{LineElement}", year="2014", howpublished="\url{https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html}", note=[Accessed: 23-February-2025
]}
BibLaTeX
@online{reference.wolfram_2025_lineelement, organization={Wolfram Research}, title={LineElement}, year={2014}, url={https://reference.wolfram.com/language/FEMDocumentation/ref/LineElement.html}, note=[Accessed: 23-February-2025
]}