ArashMehraban / fem-elasticity

Test Driven MATLAB library code to solve 2D and 3D incompressible linear elasticity problems with Finite Element Method
7 stars 1 forks source link

Octave compatible? #1

Open stefano2734 opened 2 years ago

stefano2734 commented 2 years ago

Compatible to free matlab clone octave? No license is needed for octave.

If yes, please extend your info in Readme with Octave Version. Actual Version of Octave is 7.2. if unknown, untested with octave, info about this also nice. if no, it is also ok. Some commands are not compatible in octave.

ArashMehraban commented 2 years ago

@stefano2734 I have not tested this with Octave. However, this code should work with Octave! Can you tell me what commands error in Octave?

stefano2734 commented 2 years ago

First I want, that the expert of the software make here some tests. I am a newbie by octave with interest in FEM and CFD So you are the expert. I can send you some links for a fast test configuration. Here some last infos about octave. https://wiki.octave.org/Differences_between_Octave_and_Matlab https://wiki.octave.org/Release_History https://octave.org/NEWS-7.html

ArashMehraban commented 2 years ago

@stefano2734 I looked through the links you sent. I don’t see any potential blocker for this code. I think you should clone this repo and try to run it Octave to see if give you any errors and then share the error. However, I recommend not using this repo at all. Use my other repo which gives you a lot more flexibility with boundary conditions https://github.com/ArashMehraban/MatlabTestsPetsc That repo solves 3D linear elasticity and hyperelasticity problems. However, I didn’t have time to provide it with a preconditioning yet. You should clone either one of these repos and run them with Octave to see you get any errors

stefano2734 commented 2 years ago

Thanks for your answer. Will you fast Test octave 7.2 in your matlabtestspetsc?

for this project you can write in readme.md Untested with octave. See no problems to test with used commands. Or something else.

ArashMehraban commented 2 years ago

Thanks for your answer. Will you fast Test octave 7.2 in your matlabtestspetsc?

for this project you can write in readme.md Untested with octave. See no problems to test with used commands. Or something else.

I think it is best if you clone this repo (https://github.com/ArashMehraban/MatlabTestsPetsc) and run the code in your own environment. If you use the command line in Octave, use the following commands:

run("runLinElas. m") to run linear elasticity problem run("runHyperFS_ref.m") to run hyperelasticity problem

and if you use the GUI from Octave, simply run the files mentioned above in your GUI.

ArashMehraban commented 2 years ago

I accidentally closed the issue! Let me know if you have any more questions!