CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Using ODE in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2016, 18:55
Default Problems with ODE in OpenFOAM 2.4.x?
  #21
New Member
 
Mauricio
Join Date: May 2015
Posts: 3
Rep Power: 11
mauri_tano is on a distinguished road
Hello guys,

I am trying to implement an ODE solver for an application. For getting familiarized with the available solvers, I tried to run the Test-ODE script from $FOAM_APP/test/ODE.

I run
Code:
wmake
and it compiles fine, making the correct dependencies. However, when I tried to execute it, running for example
Code:
 Test-ODE Euler
I get just line with the following error:

Code:
 Segmentation Fault (`core' generated)
I have tried changing the solvers with equal results. I will very much appreciate your recommendations

Thanks a lot!

Mauricio.
mauri_tano is offline   Reply With Quote

Old   March 30, 2016, 10:06
Default
  #22
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
Try to use wclean then wmake. If it didn't work, go to src/ODE and wclean then wmake the ODE library.
This error is related to your machine and OF installation. I couldn't reproduce it.
hk318i is offline   Reply With Quote

Old   April 6, 2022, 07:05
Default
  #23
Member
 
zink
Join Date: Oct 2015
Posts: 30
Rep Power: 11
ansab_sindhu is on a distinguished road
hi,

The links mentioned in the below post are not working, can anyone share the alternative one please?

Regarding the forces class, it is not only for writing. You can use it to get the forces directly [LINK].
There is a very good example for that in OpenFOAM source in sixDoFRigidBody [LINK] library. Here is a snippet of this library;


Quote:
Originally Posted by hk318i View Post
Hello Methma,

That is a great progress, well done.
Regarding the forces class, it is not only for writing. You can use it to get the forces directly [LINK].
There is a very good example for that in OpenFOAM source in sixDoFRigidBody [LINK] library. Here is a snippet of this library;

Code:
// define a dictionary first
    dictionary forcesDict;

// add the required parameters
    forcesDict.add("type", forces::typeName);
    forcesDict.add("patches", wordList(1, ptPatch.name()));
    forcesDict.add("rhoInf", rhoInf_);
    forcesDict.add("rhoName", rhoName_);
    forcesDict.add("CofR", motion_.centreOfRotation());

// create force object
    forces f("forces", db(), forcesDict);
// calculate the forces
    f.calcForcesMoment();
// finally you can get the forces and moment
    vector F = f.forceEff();
    vector M = f.momentEff();
Best wishes,
Hassan
ansab_sindhu is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is GUI there for OpenFoam navaladi OpenFOAM 4 September 11, 2023 14:35
OpenFoam vs CFX5 mass balance in OpenFoam tangd OpenFOAM Running, Solving & CFD 33 May 23, 2010 17:36
[blockMesh] CheckMesh error using a tutorial from OpenFOAM 114 with openFOAM 13 martapajon OpenFOAM Meshing & Mesh Conversion 7 January 21, 2008 13:52
OpenFOAM users in Munich OpenFOAM benutzer in M%c3%bcnchen jaswi OpenFOAM 0 August 3, 2007 14:11
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 09:54


All times are GMT -4. The time now is 01:17.