Author Topic: User Element Dose not Work  (Read 9030 times)

gaobao

  • New Member
  • *
  • Posts: 5
User Element Dose not Work
« on: June 23, 2015, 10:01:40 PM »
Hi,
I use FEAPpv in Linux Ubuntu OS.
I tried to implement a user defined element, it is successfully compiled use "make".
However when I try to run it with my input file, it shows like below

Continue with interactive input options for control?  <y or n> :
 *ERROR* Attempt to solve problem before mesh input.
         Check for error on FEAPpv record.

Could you please tell me what could be the reason to cause this error? P.S I tried the same input file using SOLID element, it works fine.

The attached file is my input file.

Regards,
Xuan


FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: User Element Dose not Work
« Reply #1 on: June 23, 2015, 11:09:39 PM »
Did you write your input routine to read the way you have written your material properties?
If so one thing to try is to add a second blank line after your material properties.
I think MATE needs one blank line to terminate and I'm guess your material property routine
also needs a blank line?

gaobao

  • New Member
  • *
  • Posts: 5
Re: User Element Dose not Work
« Reply #2 on: June 24, 2015, 11:08:29 AM »
Did you write your input routine to read the way you have written your material properties?
If so one thing to try is to add a second blank line after your material properties.
I think MATE needs one blank line to terminate and I'm guess your material property routine
also needs a blank line?

Thank you for your reply!
I tried your suggestion but it still gives me the same error.
And I think it read my material prop and mesh successfully.
The attached file is the output file from FEAPpv.
Could you please tell me is there any other possibility that somewhere is wrong?
Tank you so much!

Regards
Xuan

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: User Element Dose not Work
« Reply #3 on: June 24, 2015, 11:21:09 AM »
FEAPpv is probably having difficulty reading the lines with all the ....  - how are you reading them?

gaobao

  • New Member
  • *
  • Posts: 5
Re: User Element Dose not Work
« Reply #4 on: June 24, 2015, 12:00:30 PM »
FEAPpv is probably having difficulty reading the lines with all the ....  - how are you reading them?
Hi Prof. Taylor
Thanks for your reply, but from the output file it looks like the FRAPpv read material properties successfully.
The lines below is the head of my subroutine to read the inputs.

Regards,
Xuan

C--------------------------------------------------------------------PARCR
      subroutine parcr (cdata,rdata,ic,ir,ifile,errflg)
     
c.... This subroutine parses command lines and
c     translates the line into word strings and real data
     
   implicit none
      integer nspec,nnum,nalpha
   parameter (nspec=2,nnum=16,nalpha=26)
   integer item,ir,ic,ifile,i,j,k,l,nc,ni,nr,ns,iexp,nexp
   integer int,incr
      character alpha*26,num*16,spec(nspec)*1,line*160
      character cdata(ic)*4     
   real*8 rdata(ir),rtem,fac
      logical cflag,iflag,rflag,errflg
      save

________________________________________________________
I also tried with the user element and input example provided by Pro.Govindjee:
http://www.ce.berkeley.edu/~sanjay/FEAP/elmt40_lysmer.f and http://www.ce.berkeley.edu/~sanjay/FEAP/Ibari
which gives me same error.

Regards,
Xuan
« Last Edit: June 24, 2015, 01:51:39 PM by gaobao »

gaobao

  • New Member
  • *
  • Posts: 5
Re: User Element Dose not Work
« Reply #5 on: July 06, 2015, 10:17:05 AM »
Hi,
I tried to comment line 583,584 from pcontr.f.
                              write(*,3001)
                              call plstop()
Then the feappv can proceed to analysis and gives a result seems correct?
But I still couldnt understand why this happend and is it OK to comment those lines?

Thank you.

Sincerely,
Xuan

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: User Element Dose not Work
« Reply #6 on: July 07, 2015, 05:55:08 AM »
When you use your own input routine you run the risk that feap does not set the flags - in particular the flag 'newprob' which is causing feap & feappv to think the data has not been input.  There are probably other places where flags are not processed.  The simple cure it to use feap input routines.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: User Element Dose not Work
« Reply #7 on: July 07, 2015, 06:07:07 AM »
Can you send your input routine so we can see why the program is not detecting a new problem?

gaobao

  • New Member
  • *
  • Posts: 5
Re: User Element Dose not Work
« Reply #8 on: July 15, 2015, 04:19:09 PM »
Thank you so much for your reply.
I can not upload any code due to some reason, sorry about this.
I found this error dose not occur when I compiled with FEAP ver84.

Thank you again for your help.

Best,
Xuan