Giter Club home page Giter Club logo

Comments (7)

ruddykurnia avatar ruddykurnia commented on September 15, 2024

Hi,

Perhaps, you could start with the attached files, places the files into your NEMOH source code folder, and try to execute a test case in get_started0.m. Please let me know if you still have the same problem.
get_started_NEMOH_MATLAB.zip

Regards,
Ruddy

from nemoh.

Aayush146 avatar Aayush146 commented on September 15, 2024

Hi, thanks for your reply. I am getting a new error now:
The system cannot find the path specified.
Error using fscanf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in axiMesh (line 101)
ligne=fscanf(fid,'%s',2);

Error in get_started0 (line 67)
[Mass,Inertia,KHyd,XB,YB,ZB]=axiMesh(r,z,n);% Call the function axiMesh.

It may be because I have put it in a wrong folder, but I am unsure.

from nemoh.

ikaushik007 avatar ikaushik007 commented on September 15, 2024

Hello there, so I am trying to use Nemoh to find my coefficients for a sphere for use in WEC-sim. I used BEMROSETTA to convert my STL files into NEMOH.dat file for input into NEMOH and then planned to use the coefficients obtained from NEMOH in WEC-Sim for analysis of my device.

However, when I run Nemoh through MATLAB, I get the same error. full error below

Error using fgets
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in fgetl (line 32)
[tline,lt] = fgets(fid);

Error in Nemoh (line 104)
ligne=fgetl(fid);

Error in nemoh_run (line 9)
[A,B,Fe]=Nemoh(w,dir,depth);

Is there any guide on using an already mesh and running nemoh.

from nemoh.

gducrozet avatar gducrozet commented on September 15, 2024

Hello @ikaushik007 and @Aayush146
It looks like an error external to NEMOH, check the path and name of the file you provide as input. Matlab simply tells you that he cannot read the file. You should have prior to the 'fgets' command a 'fid=fopen(...)' to tell the code which file you open!?

Best,
G.

from nemoh.

ikaushik007 avatar ikaushik007 commented on September 15, 2024

Hello @ikaushik007 and @Aayush146 It looks like an error external to NEMOH, check the path and name of the file you provide as input. Matlab simply tells you that he cannot read the file. You should have prior to the 'fgets' command a 'fid=fopen(...)' to tell the code which file you open!?

Best, G.

fid=fopen([rep,filesep,'results',filesep,'ExcitationForce.tec'],'r');

The above is the line 104 where the error occurs.

from nemoh.

gducrozet avatar gducrozet commented on September 15, 2024

And if you display [rep,filesep,'results',filesep,'ExcitationForce.tec'] it is really pointing toward your file?

from nemoh.

gducrozet avatar gducrozet commented on September 15, 2024

This project has migrated to GitLab: https://gitlab.com/lheea/Nemoh

If the issue is still active in the new Release, feel free to open an issue there!

from nemoh.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.