Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 26527

how to calculate the parameter values of a curve edge in mesh file

$
0
0
Hi guys,
I exported a mesh file from comsol. Can anyone tell me how to calculate the parameter values of a curve edge at two endpoints, respectively? Below is the mesh data of a circle:

# Major & minor version
0 1
1 # number of tags
# Tags
5 mesh1
1 # number of types
# Types
3 obj

# --------- Object 0 ----------

0 0 1
4 Mesh # class
2 # version
2 # sdim
14 # number of mesh points
0 # lowest mesh point index

# Mesh point coordinates
0.54004497593511991 -0.037779200720473034
1 0
0.70711341916808013 0.70710014314270009
0.18343216591831446 0.25870137743794869
0.24479262775166793 -0.3540242553652021
0.70710014314270009 -0.70711341916808013
-0.25920024933402869 0.33623073487269922
0 1
-0.20661414623779478 -0.28393003437540593
0 -1
-0.56571912320796292 -0.0007310878671271309
-0.70710014314270009 0.70711341916808013
-0.70711341916808013 -0.70710014314270009
-1 0

3 # number of element types

# Type #0

3 vtx # type name


1 # number of nodes per element
4 # number of elements
# Elements
1
7
9
13

1 # number of parameter values per element
0 # number of parameters
# Parameters

4 # number of geometric entity indices
# Geometric entity indices
3
2
1
0

0 # number of up/down pairs
# Up/down

# Type #1

3 edg # type name


2 # number of nodes per element
8 # number of elements
# Elements
2 1
1 5
7 2
5 9
11 7
9 12
12 13
13 11

2 # number of parameter values per element
8 # number of parameters
# Parameters
0.50000566589823847 1
0 0.50000566589823847
0 0.50000566589823847 <------ How to obtain them?
0.50000566589823847 1
0.50000566589823847 1
0 0.50000566589823847
0.50000566589823847 1
0 0.50000566589823847

Thanks!

Viewing all articles
Browse latest Browse all 26527

Trending Articles