Author Topic: question about BATCh  (Read 4600 times)

halleluja

  • Full Member
  • ***
  • Posts: 80
question about BATCh
« on: October 20, 2021, 11:12:30 AM »
Hi everyone,

can you take a look of my input file
Code: [Select]
FEAP * * * PFEM * * *
0,0,1,2,2,6


MATErial,1
SOLId
FINIte
ELAStic MNEOHook 210000.0 0.3

block
cart,10,4,,,,,
TRIAngle 6
1   0.0 0.0
2   3.0 0.0
3   3.0 1.5
4   0.0 1.5

EBOU
2,0.0,1,1
2,1.5,1,1

EDISP
2,1.5,0.0,0.6
END

BATCh
TPLO
PROP,1
DT,,0.1
LOOP,TIME,10
  loop,equi,99
    TANG,,1
  next,equi
  TIME
  plot WIPE
  PLOT MESH
  PLOT STRE 1
NEXT,TIME
END
SUMS,1,2,0.0
INTE

STOP
The output is zero, no displacement. But if one add
Code: [Select]
END

BATCh
, between
Code: [Select]
DT,,0.1 and
Code: [Select]
LOOP,TIME,10, namely now the input file is
Code: [Select]
FEAP * * * PFEM * * *
0,0,1,2,2,6


MATErial,1
SOLId
FINIte
ELAStic MNEOHook 210000.0 0.3

block
cart,10,4,,,,,
TRIAngle 6
1   0.0 0.0
2   3.0 0.0
3   3.0 1.5
4   0.0 1.5

EBOU
2,0.0,1,1
2,1.5,1,1

EDISP
2,1.5,0.0,0.6
END

BATCh
TPLO
PROP,1
DT,,0.1
END

BATCh
LOOP,TIME,10
  loop,equi,99
    TANG,,1
  next,equi
  TIME
  plot WIPE
  PLOT MESH
  PLOT STRE 1
NEXT,TIME
END
SUMS,1,2,0.0
INTE

STOP
, then i works. Can you tell me the reason?

P.S. I use feap version 8.4.
« Last Edit: October 20, 2021, 11:14:21 AM by halleluja »

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: question about BATCh
« Reply #1 on: October 20, 2021, 01:23:13 PM »
You are missing a blank line before the mesh END statement.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: question about BATCh
« Reply #2 on: October 20, 2021, 02:13:51 PM »
To clarify a bit.

FEAP's built in commands, like EDISP, read data until they read a signal to stop reading data.  The signal to stop reading data is a blank line, which is why you need the blank line before the END statement for the mesh.

halleluja

  • Full Member
  • ***
  • Posts: 80
Re: question about BATCh
« Reply #3 on: October 20, 2021, 03:03:19 PM »
You are missing a blank line before the mesh END statement.

Dear Prof. R.L. Taylor,

thanks a lot for your reply. I have added a blank line before the mesh End statement.
Code: [Select]
FEAP * * * PFEM * * *
0,0,1,2,2,6


MATErial,1
SOLId
FINIte
ELAStic MNEOHook 210000.0 0.3

block
cart,10,4,,,,,
TRIAngle 6
1   0.0 0.0
2   3.0 0.0
3   3.0 1.5
4   0.0 1.5

EBOU
2,0.0,1,1
2,1.5,1,1

EDISP
2,1.5,0.0,0.6

END

BATCh
TPLO
PROP,1
DT,,0.1
LOOP,TIME,10
  loop,equi,99
    TANG,,1
  next,equi
  TIME
  plot WIPE
  PLOT MESH
  PLOT STRE 1
NEXT,TIME
END
SUMS,1,2,0.0

INTE

STOP

, but it still doesn't work.

halleluja

  • Full Member
  • ***
  • Posts: 80
Re: question about BATCh
« Reply #4 on: October 20, 2021, 03:09:48 PM »
To clarify a bit.

FEAP's built in commands, like EDISP, read data until they read a signal to stop reading data.  The signal to stop reading data is a blank line, which is why you need the blank line before the END statement for the mesh.

Dear Prof. S. Govindjee,

thanks a lot for your explanation. One interesting thing that i found is that even i have added a blank line before the END statement for the mesh, it still doesn't work. But if i use two pair BATCh END statement as following
Code: [Select]
FEAP * * * PFEM * * *
0,0,1,2,2,6


MATErial,1
SOLId
FINIte
ELAStic MNEOHook 210000.0 0.3

block
cart,10,4,,,,,
TRIAngle 6
1   0.0 0.0
2   3.0 0.0
3   3.0 1.5
4   0.0 1.5

EBOU
2,0.0,1,1
2,1.5,1,1

EDISP
2,1.5,0.0,0.6
END

BATCh
TPLO
PROP,1
DT,,0.1
END

BATCh
LOOP,TIME,10
  loop,equi,99
    TANG,,1
  next,equi
  TIME
  plot WIPE
  PLOT MESH
  PLOT STRE 1
NEXT,TIME
END
SUMS,1,2,0.0
INTE

STOP
, in this case even that i didn't add a blank line before the END statement of the mesh, it works fine.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: question about BATCh
« Reply #5 on: October 20, 2021, 04:23:04 PM »
Yes.  This is because there are still other issues.
For example TPLOT looks for data as does PROP.  When you put these into a BATCH-END block you need to place the data after the END along with a blank line to terminate the input.  To fully understand what is being looked for, it is recommended that you first run FEAP in interactive mode.  This will give you a better sense of what is being requested.

[Also I suspect you intend PROP,,1 and not PROP,1 -- though in your case it does not matter.]