Author Topic: call different file in main program.  (Read 5891 times)

manoj

  • New Member
  • *
  • Posts: 4
call different file in main program.
« on: February 12, 2015, 01:39:59 AM »
Hello sir,
 I am going to solve forced vibration time dependent plate problem. I have solved that problem by using FPROP command. But now i want to solve same problem by calling different force value which i have got from different solver which i have shown below. so that program will read that imported force value  for every time step and it will take that force value.
   sir, can you tell me how to call that force data file in feappv program.My force data file is in tabular form. In which format our file should be there???

please help me. here below i have shown my example time and force data.
time   force(N)
0    0
0.01    3.73595
0.02    7.38801
0.03    10.8741
0.04    14.1161
0.05    17.041
0.06    19.5832
0.07    21.6856
0.08    23.301
0.09    24.3931
0.1    24.9374
0.11    24.9216
0.12    24.3462
0.13    23.224
0.14    21.5802
0.15    19.4518
0.16    16.8866
0.17    13.9421
0.18    10.6845
0.19    7.18695
0.2    3.528
0.21    -0.210181
0.22    -3.99364
0.23    -7.58854
0.24    -11.063
0.25    -14.289
0.26    -17.1942
0.27    -19.7131
0.28    -21.7894
0.29    -23.3763
0.3    -24.4383

I am looking forward for your response.

Thank you very much

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: call different file in main program.
« Reply #1 on: February 12, 2015, 08:18:36 AM »
You can use a PROP type 2 condition to scale your load.  Set the force to 1 and then it will be multiplied by the proportional load value.  Otherwise you have to write a user module to do what you want.  See feap programmer manual for details.

manoj

  • New Member
  • *
  • Posts: 4
Re: call different file in main program.
« Reply #2 on: February 12, 2015, 09:19:33 AM »
sir, thank you for your quick reply.

 But sir actually i am doing FSI (fluid structure interaction). i have solved that problem in fluid solver. Now i got different forces value with each time step which i have shown above. now i want to call that file in FEAPpv program file. so that for that time step it will take that force value means it should read that file . I want  displacement value for each that time step about particular node.

so which method i need to use so that it will read that file while running that program??

I am looking forward your response.

Thank you once again.

 

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: call different file in main program.
« Reply #3 on: February 12, 2015, 10:10:40 AM »
If you are doing this on the fly, then you will want to write a user macro umacrXX.f that reads your file and then sets the values in F( ) which is array 27.  So accessed via hr(np(27)).  F is dimensioned ndf x numnp x 2.  The first column are the imposed forces and the second the imposed displacements.

manoj

  • New Member
  • *
  • Posts: 4
Re: call different file in main program.
« Reply #4 on: March 05, 2015, 01:47:15 AM »
sir,thank you for your quick reply. But sir in source code file from which subroutine that force term hr(np(27)) is initalised means from which subroutine that hr(np(27)) called. so that i can put their my umacrxx.f  file.

I am looking forward for your response.