Tutorial 1: Running FEBio from the command line on Windows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cakunkle
    Junior Member
    • Mar 2010
    • 16

    #16
    Hey Steve,

    If I open the command prompt in Windows Vista and type in: febio -i name.feb I get a message saying "'febio' is not recognized as an internal or external command, operable program or batch file."

    Thanks,

    Catherine

    Comment

    • maas
      Lead Code Developer
      • Nov 2007
      • 3436

      #17
      Aha, that is probably because you have not added the FEBio path to your PATH environment variable. Please follow the steps 1 through 7 listed in the first post of this thread. Note that this post lists the steps for XP. Since I'm not familiar with Vista, I don't know if the same steps can be followed. Once you figure out how to set the PATH variable I would love to hear your feedback on this procedure for Vista.

      Good luck!

      Steve.
      Department of Bioengineering, University of Utah
      Scientific Computing and Imaging institute, University of Utah

      Comment

      • cakunkle
        Junior Member
        • Mar 2010
        • 16

        #18
        Hey Steve,

        I had already added the path variable FEbio. I did this by using the same instructions outlined earlier for XP. I receive the error regardless.

        Thanks,

        Catherine

        Comment

        • maas
          Lead Code Developer
          • Nov 2007
          • 3436

          #19
          Do you have to use febio.exe instead of febio maybe?
          Department of Bioengineering, University of Utah
          Scientific Computing and Imaging institute, University of Utah

          Comment

          • cakunkle
            Junior Member
            • Mar 2010
            • 16

            #20
            Hey Steve,

            I have tried that as well. I think I'm missing some sort of command?

            Thanks,

            Catherine

            Comment

            • maas
              Lead Code Developer
              • Nov 2007
              • 3436

              #21
              Hi Catherine,

              Can you see if you can run FEBio from the folder that FEBio is installed in (which should be C:/Program Files/FEBio1p2 for the latest version). Put your FEBio input file in the same folder, open a command window, cd to that folder and then run FEBio. What do you get then?

              Steve.
              Department of Bioengineering, University of Utah
              Scientific Computing and Imaging institute, University of Utah

              Comment

              • cakunkle
                Junior Member
                • Mar 2010
                • 16

                #22
                Hey Steve,

                Success!

                For Windows Vista:
                1. Open "run..." type cmd and hit enter (if you right click and change the start menu to "classic start menu" it is easy to find when you hit start)
                2. Do a cd to the folder where FEBio is stored (in my case cd desktop)
                3. Type in febio -i name.feb
                You should then see the program running.
                4. After the program finishes, find .plt file in same same folder as FEBio

                Thanks,

                Catherine

                Comment

                • maas
                  Lead Code Developer
                  • Nov 2007
                  • 3436

                  #23
                  Hi Catherine,

                  I'm glad to hear you were able to figure it out. I'm still puzzled why you can't run FEBio from any folder. You're probably not concerned about that anymore, but if you ever figure that out, I'd love to hear about it.

                  Cheers,

                  Steve.
                  Department of Bioengineering, University of Utah
                  Scientific Computing and Imaging institute, University of Utah

                  Comment

                  • cakunkle
                    Junior Member
                    • Mar 2010
                    • 16

                    #24
                    Hey Steve,

                    I'm not sure why you can not run FEBio from any folder. Now, I am now looking into assigning the level of isotropy to a material in preview. Is there a way to model both a isotropic and transversely isotropic biphasic (poroelastic) material?

                    Thanks,

                    Catherine

                    Comment

                    • maas
                      Lead Code Developer
                      • Nov 2007
                      • 3436

                      #25
                      Hey Catherine,

                      Since this is a new question unrelated to this thread, would you mind creating a new thread for this?

                      Thanks,

                      Steve.
                      Department of Bioengineering, University of Utah
                      Scientific Computing and Imaging institute, University of Utah

                      Comment

                      • minushuman
                        Junior Member
                        • Nov 2011
                        • 5

                        #26
                        Hi Steve,

                        When I ran one of examples, "bp04.feb", I got the error message, "Failed creating log file".
                        I typed febio -i bp04.feb.
                        Could you please tell me how to solve this problem?

                        Thanks,

                        Chang-Kye.

                        Comment

                        • maas
                          Lead Code Developer
                          • Nov 2007
                          • 3436

                          #27
                          Hi Chang-Kye,

                          Is it just this file that's causing a problem or do you get the error message when running other files as well?

                          Steve.
                          Department of Bioengineering, University of Utah
                          Scientific Computing and Imaging institute, University of Utah

                          Comment

                          • minushuman
                            Junior Member
                            • Nov 2011
                            • 5

                            #28
                            Hi Steve,

                            Well, I can see the same error when running other files as well.
                            My OS is Windows 7.

                            Chang-Kye.

                            Comment

                            • maas
                              Lead Code Developer
                              • Nov 2007
                              • 3436

                              #29
                              In that case, I am guessing that you trying to run FEBio in your Program Files folder. Win7 default file permissions will not let you do that. You have to run FEBio from your Documents folder. In order to do this you have to add the path to the FEBio executable to your path environment variable (Don't just copy the executable to your Documents folder!). The first post on this thread tells you how to do that. Please give it a try and let me know if that solved the problem.

                              Cheers,

                              Steve.
                              Department of Bioengineering, University of Utah
                              Scientific Computing and Imaging institute, University of Utah

                              Comment

                              • minushuman
                                Junior Member
                                • Nov 2011
                                • 5

                                #30
                                Steve,

                                As you suggest, I ran FEBio from my Documents folder and it works well!
                                Thank you very much.

                                Best,

                                Chang-Kye.

                                Comment

                                Working...
                                X
                                😀
                                😂
                                🥰
                                😘
                                🤢
                                😎
                                😞
                                😡
                                👍
                                👎