Problem with converting .inp to .xml

Asked by Veena P

First of all, I am not an expert using FEniCS, I haven't used it before. I just started to learn how to use FEniCS to solve a simple elasticity 2D plate with a hole in the middle. I have done the geometry on Abaqus and the geometry was exported as an inp file. I have tried to use abaqus2xml.py

from dolfin import *
from abaqus2xml import *
convert ( ' abaqus . inp ' , ' out . xml ' )
mesh = Mesh( ' out . xml ' )
mesh . order ( )

and also dolfin.mesh.meshconvert that are suggested on the question 153448: Importing mesh and entities

from dolfin.mesh.meshconvert import *
convert('Input.inp', XmlHandler('out.xml'), 'abaqus')
mesh=Mesh('out.xml')

but I haven't achieved yet. There are many warning massages and there is nothing in the induced file (out.xml).

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Veena P (vp1110) said :
#1

I have checked about the abaqus2xml.py. It can be used to convert only 3D geometries .inp file to .xml file. But, my problem is 2D plate. What should I do if I would like to convert 2D plate .inp file to .xml file? I need some help...

Veena

Revision history for this message
Garth Wells (garth-wells) said :
#2

On 21 June 2012 11:15, Veena P <email address hidden> wrote:
> Question #200534 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/200534
>
> Veena P posted a new comment:
> I have checked about the abaqus2xml.py. It can be used to convert only
> 3D geometries .inp file to .xml file. But, my problem is 2D plate. What
> should I do if I would like to convert 2D plate .inp file to .xml file?
> I need some help...
>

The Abaqus conversion is under development. Can you post an example
file of 2D Abaqus input?

Garth

> Veena
>
> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.

Revision history for this message
Veena P (vp1110) said :
#3

*Heading
** Job name: 10x10Plate_R05Hole Model name: 10x10Plate_R05Hole
** Generated by: Abaqus/CAE 6.10-1
*Preprint, echo=NO, model=NO, history=NO, contact=NO
**
** PARTS
**
*Part, name=Part-1
*Node
      1, 0., 0.5
      2, 0., 2.
      3, 0.461939752, 0.191341713
      4, 0.353553385, 0.353553385
      5, 0.191341713, 0.461939752
      6, 0.5, 0.
      7, 2., 0.
      8, 2., 2.
      9, 0., 0.6875
     10, 0., 0.875
     11, 0., 1.0625
     12, 0., 1.25
     13, 0., 1.4375
     14, 0., 1.625
     15, 0., 1.8125
     16, 1.8125, 0.
     17, 1.625, 0.
     18, 1.4375, 0.
     19, 1.25, 0.
     20, 1.0625, 0.
     21, 0.875, 0.
     22, 0.6875, 0.
     23, 2., 1.79999995
     24, 2., 1.60000002
     25, 2., 1.39999998
     26, 2., 1.20000005
     27, 2., 1.
     28, 2., 0.800000012
     29, 2., 0.600000024
     30, 2., 0.400000006
     31, 2., 0.200000003
     32, 0.200000003, 2.
     33, 0.400000006, 2.
     34, 0.600000024, 2.
     35, 0.800000012, 2.
     36, 1., 2.
     37, 1.20000005, 2.
     38, 1.39999998, 2.
     39, 1.60000002, 2.
     40, 1.79999995, 2.
     41, 0.375134557, 0.550861359
     42, 0.614238858, 0.172051132
     43, 0.548119366, 0.372979909
     44, 0.176611751, 1.74364412
     45, 0.173025087, 0.620161176
     46, 0.167838231, 0.971630812
     47, 0.166850492, 1.15675318
     48, 0.166197643, 1.34470618
     49, 0.174234435, 1.53976679
     50, 1.74230182, 0.176166952
     51, 1.53753448, 0.173379347
     52, 1.34364069, 0.166477099
     53, 1.15610087, 0.164943278
     54, 0.968927681, 0.163562939
     55, 0.786345661, 0.160197049
     56, 1.82140434, 1.49986458
     57, 1.82445478, 1.30066812
     58, 1.82690561, 1.10008872
     59, 1.82743597, 0.899648368
     60, 1.82659388, 0.696992815
     61, 1.82672775, 0.495926946
     62, 1.0999881, 1.82747447
     63, 1.3007189, 1.82588065
     64, 1.50876904, 1.82011294
     65, 1.72788167, 1.81916463
     66, 0.163700953, 0.790544629
     67, 0.601248324, 0.588505447
     68, 0.303929478, 0.714136958
     69, 0.337099254, 1.25010371
     70, 1.20014989, 1.64771116
     71, 1.43897045, 0.340249091
     72, 1.25037384, 0.334371895
     73, 1.65580475, 1.00062144
     74, 1.65498483, 0.590556383
     75, 1.84277296, 0.327999353
     76, 0.495954335, 1.82840502
     77, 0.369955331, 1.65145421
     78, 0.6962201, 1.82729697
     79, 0.898352027, 1.82705224
     80, 1.6523447, 1.20341516
     81, 0.328504294, 1.84470069
     82, 1.6495899, 1.40518606
     83, 0.340374857, 1.4405452
     84, 1.05637026, 0.329451472
     85, 0.865750134, 0.316883028
     86, 0.710549593, 0.295536995
     87, 1.83558786, 1.66817701
     88, 0.341727048, 1.05602121
     89, 1.65289748, 0.796325386
     90, 1.65075254, 0.371853918
     91, 1.40591466, 1.64221632
     92, 1.63421154, 1.62098277
     93, 0.517623425, 1.15230429
     94, 0.469717413, 0.739816487
     95, 0.496048301, 1.51136696
     96, 1.49538553, 1.4854238
     97, 0.330299467, 0.868181825
     98, 1.3445183, 0.504948795
     99, 0.94126761, 0.483793497
    100, 1.48372245, 1.30916178
    101, 0.998128116, 1.65340352
    102, 1.14445221, 0.498288453
    103, 1.51078236, 0.498699278
    104, 0.793518901, 1.65195644
    105, 0.588502586, 1.65530968
    106, 1.48571491, 1.10476708
    107, 0.508303881, 1.34464157
    108, 0.745414376, 0.448762536
    109, 1.48498118, 0.901577592
    110, 1.46092868, 0.683883309
    111, 1.30859363, 1.44125223
    112, 1.30986047, 1.21093321
    113, 0.900357723, 1.48191559
    114, 0.538396955, 0.941746175
    115, 1.02983463, 0.663708985
    116, 0.674678981, 0.777172387
    117, 0.685416937, 1.46147048
    118, 0.815741301, 0.632300079
    119, 1.2416929, 0.672944963
    120, 1.3081584, 1.00104892
    121, 0.687201679, 1.25704157
    122, 1.09577477, 1.47443426
    123, 0.744045317, 0.925462544
    124, 1.13136888, 0.863765836
    125, 0.993243456, 1.31355822
    126, 0.827171743, 1.33864784
    127, 0.899832189, 0.831100583
    128, 1.32542598, 0.824644148
    129, 1.08491468, 1.10430896
    130, 0.708609045, 1.07678604
    131, 1.15847743, 1.30889738
    132, 0.885908008, 1.01121616
    133, 0.864508092, 1.18359315
    134, 1.00050592, 0.952597916
*Element, type=CPS3
  1, 66, 9, 45
  2, 114, 88, 97
  3, 58, 26, 57
  4, 42, 6, 22
  5, 43, 3, 42
  6, 44, 15, 14
  7, 45, 1, 5
  8, 94, 41, 67
  9, 66, 46, 10
 10, 47, 11, 46
 11, 48, 12, 47
 12, 78, 34, 76
 13, 69, 48, 47
 14, 16, 7, 31
 15, 50, 16, 31
 16, 61, 29, 60
 17, 51, 18, 17
 18, 52, 19, 18
 19, 54, 20, 53
 20, 55, 22, 21
 21, 40, 23, 8
 22, 65, 23, 40
 23, 70, 63, 62
 24, 57, 25, 56
 25, 90, 51, 50
 26, 89, 59, 73
 27, 112, 106, 100
 28, 74, 61, 60
 29, 75, 31, 30
 30, 32, 2, 15
 31, 44, 32, 15
 32, 81, 76, 33
 33, 77, 44, 49
 34, 95, 77, 83
 35, 79, 36, 35
 36, 63, 37, 62
 37, 64, 38, 63
 38, 92, 87, 65
 39, 41, 5, 4
 40, 43, 4, 3
 41, 42, 3, 6
 42, 53, 20, 19
 43, 80, 73, 58
 44, 43, 41, 4
 45, 81, 32, 44
 46, 49, 13, 48
 47, 45, 9, 1
 48, 45, 5, 41
 49, 88, 69, 47
 50, 46, 11, 10
 51, 96, 92, 91
 52, 47, 12, 11
 53, 83, 77, 49
 54, 48, 13, 12
 55, 49, 44, 14
 56, 49, 14, 13
 57, 51, 17, 50
 58, 50, 17, 16
 59, 60, 28, 59
 60, 52, 18, 51
 61, 59, 27, 58
 62, 53, 19, 52
 63, 84, 53, 72
 64, 54, 21, 20
 65, 85, 54, 84
 66, 55, 21, 54
 67, 86, 42, 55
 68, 55, 42, 22
 69, 56, 25, 24
 70, 87, 23, 65
 71, 97, 46, 66
 72, 57, 26, 25
 73, 89, 74, 60
 74, 58, 27, 26
 75, 103, 98, 71
 76, 59, 28, 27
 77, 90, 50, 75
 78, 60, 29, 28
 79, 90, 75, 61
 80, 61, 30, 29
 81, 62, 37, 36
 82, 78, 35, 34
 83, 91, 63, 70
 84, 63, 38, 37
 85, 92, 82, 56
 86, 64, 39, 38
 87, 65, 40, 39
 88, 65, 39, 64
 89, 66, 10, 9
 90, 68, 45, 41
 91, 67, 41, 43
 92, 99, 85, 84
 93, 97, 66, 68
 94, 68, 66, 45
 95, 88, 47, 46
 96, 117, 104, 105
 97, 96, 82, 92
 98, 101, 62, 79
 99, 72, 52, 71
100, 71, 52, 51
101, 109, 73, 106
102, 72, 53, 52
103, 73, 59, 58
104, 80, 58, 57
105, 103, 90, 74
106, 89, 60, 59
107, 75, 50, 31
108, 75, 30, 61
109, 76, 34, 33
110, 81, 77, 76
111, 83, 49, 48
112, 104, 101, 79
113, 122, 101, 113
114, 105, 77, 95
115, 79, 62, 36
116, 79, 35, 78
117, 82, 80, 57
118, 100, 80, 82
119, 81, 33, 32
120, 81, 44, 77
121, 82, 57, 56
122, 92, 56, 87
123, 83, 48, 69
124, 107, 95, 83
125, 108, 43, 86
126, 84, 54, 53
127, 108, 86, 85
128, 85, 55, 54
129, 86, 43, 42
130, 86, 55, 85
131, 87, 56, 24
132, 87, 24, 23
133, 114, 97, 94
134, 127, 116, 118
135, 128, 124, 119
136, 110, 74, 89
137, 90, 61, 74
138, 90, 71, 51
139, 91, 64, 63
140, 111, 91, 70
141, 92, 65, 64
142, 92, 64, 91
143, 111, 100, 96
144, 93, 69, 88
145, 94, 68, 41
146, 116, 114, 94
147, 117, 105, 95
148, 107, 83, 69
149, 111, 96, 91
150, 100, 82, 96
151, 97, 88, 46
152, 97, 68, 94
153, 102, 72, 98
154, 98, 72, 71
155, 118, 108, 99
156, 102, 99, 84
157, 134, 127, 124
158, 106, 80, 100
159, 101, 70, 62
160, 104, 79, 78
161, 102, 84, 72
162, 119, 115, 102
163, 103, 71, 90
164, 110, 89, 109
165, 105, 104, 78
166, 117, 113, 104
167, 105, 78, 76
168, 105, 76, 77
169, 120, 106, 112
170, 106, 73, 80
171, 107, 69, 93
172, 121, 117, 107
173, 108, 67, 43
174, 108, 85, 99
175, 128, 120, 124
176, 109, 89, 73
177, 110, 98, 103
178, 110, 103, 74
179, 122, 70, 101
180, 125, 122, 113
181, 112, 100, 111
182, 132, 130, 123
183, 113, 101, 104
184, 126, 117, 121
185, 114, 93, 88
186, 116, 94, 67
187, 115, 99, 102
188, 119, 102, 98
189, 118, 67, 108
190, 118, 116, 67
191, 117, 95, 107
192, 121, 107, 93
193, 118, 99, 115
194, 127, 118, 115
195, 119, 98, 110
196, 128, 110, 109
197, 120, 109, 106
198, 133, 129, 125
199, 130, 93, 114
200, 133, 130, 132
201, 131, 111, 122
202, 122, 111, 70
203, 123, 114, 116
204, 134, 132, 127
205, 124, 115, 119
206, 129, 124, 120
207, 131, 125, 129
208, 126, 125, 113
209, 126, 113, 117
210, 133, 121, 130
211, 127, 123, 116
212, 127, 115, 124
213, 128, 119, 110
214, 128, 109, 120
215, 129, 120, 112
216, 131, 129, 112
217, 130, 121, 93
218, 130, 114, 123
219, 131, 112, 111
220, 131, 122, 125
221, 133, 132, 129
222, 132, 123, 127
223, 133, 125, 126
224, 133, 126, 121
225, 134, 124, 129
226, 134, 129, 132
*Nset, nset=_PickedSet12, internal, generate
   1, 134, 1
*Elset, elset=_PickedSet12, internal, generate
   1, 226, 1
** Section: Section-1
*Solid Section, elset=_PickedSet12, material=Material-1
,
*End Part
**
**
** ASSEMBLY
**
*Assembly, name=Assembly
**
*Instance, name=Part-1-1, part=Part-1
*End Instance
**
*Nset, nset=_PickedSet12, internal, instance=Part-1-1
  1, 2, 9, 10, 11, 12, 13, 14, 15
*Elset, elset=_PickedSet12, internal, instance=Part-1-1
  6, 30, 47, 50, 52, 54, 56, 89
*Nset, nset=_PickedSet13, internal, instance=Part-1-1
  6, 7, 16, 17, 18, 19, 20, 21, 22
*Elset, elset=_PickedSet13, internal, instance=Part-1-1
  4, 14, 17, 18, 20, 42, 58, 64
*Nset, nset=_PickedSet15, internal, instance=Part-1-1
  7, 8, 23, 24, 25, 26, 27, 28, 29, 30, 31
*Elset, elset=_PickedSet15, internal, instance=Part-1-1
  14, 21, 29, 69, 72, 74, 76, 78, 80, 132
*End Assembly
**
** MATERIALS
**
*Material, name=Material-1
*Elastic
 2e+11, 0.3
**
** BOUNDARY CONDITIONS
**
** Name: BC-1 Type: Symmetry/Antisymmetry/Encastre
*Boundary
_PickedSet12, XSYMM
** Name: BC-2 Type: Symmetry/Antisymmetry/Encastre
*Boundary
_PickedSet13, YSYMM
** ----------------------------------------------------------------
**
** STEP: Step-1
**
*Step, name=Step-1
*Static
1., 1., 1e-05, 1.
**
** BOUNDARY CONDITIONS
**
** Name: BC-3 Type: Displacement/Rotation
*Boundary
_PickedSet15, 1, 1, 5e-07
**
** OUTPUT REQUESTS
**
*Restart, write, frequency=0
**
** FIELD OUTPUT: F-Output-1
**
*Output, field
*Node Output
U,
*Element Output, directions=YES
E, S
**
** HISTORY OUTPUT: H-Output-1
**
*Output, history, variable=PRESELECT
*End Step

Can you help with this problem?

Provide an answer of your own, or ask Veena P for more information if necessary.

To post a message you must log in.