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

OpenFoam and Qt

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By kebsiali
  • 1 Post By hk318i

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2015, 16:24
Default OpenFoam and Qt
  #1
New Member
 
Sergey
Join Date: Apr 2015
Posts: 3
Rep Power: 11
Leto is on a distinguished road
Hello, everyone!

In short, I became interested in the OpenFOAM because of my studies.
Spend two days reading different manuals, I decided to compile the code, see all dependencies and build the OpenFOAM-project with some IDE.

BUT...

OpenFOAM using wmake....and I really do not know about it very much (okay, I understand cmakefiles, but it still something new for me).

I find something, that I want (https://openfoamwiki.net/index.php/H...d_installation), but it used only one tiny part of OpneFOAM....

I think, here people should be the person, who did this before me.

Update: Or, if you would like more specifically: have we any ways to upgrade the existing turbulence model or add your own?

Last edited by Leto; April 15, 2015 at 04:36. Reason: specifics
Leto is offline   Reply With Quote

Old   April 15, 2015, 04:43
Default
  #2
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
hello

If what you are looking for is to creat a new turbulence model or edit a current one, then it is an easy task
all you need is creat a new class under the base class of turbulence
you can see the following link for an idea of how to create a class and how to implement, call other variables, and define new dimensional or scalar parameters
http://www.tfd.chalmers.se/~hani/kur...nFoam%20v2.pdf
Ramzy1990 likes this.
kebsiali is offline   Reply With Quote

Old   April 15, 2015, 06:29
Default
  #3
New Member
 
Sergey
Join Date: Apr 2015
Posts: 3
Rep Power: 11
Leto is on a distinguished road
Quote:
Originally Posted by kebsiali View Post
hello

If what you are looking for is to creat a new turbulence model or edit a current one, then it is an easy task
all you need is creat a new class under the base class of turbulence
you can see the following link for an idea of how to create a class and how to implement, call other variables, and define new dimensional or scalar parameters
http://www.tfd.chalmers.se/~hani/kur...nFoam%20v2.pdf
Yeap, I know how to program it...I just not completely understand how to include new model to OpenFOAM dependencies correctly.
Leto is offline   Reply With Quote

Old   April 15, 2015, 10:22
Default
  #4
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
From OpenFoam point of view (my point of view lol)
The dependencies are made based on the libraries you write in the Make/options file
whenever you include a header it is searched in these directories written in options file

Though from programmer point of view i dont know how this is actually done
so if all you want is to implement a new turbulence model it is my point of view that you need
kebsiali is offline   Reply With Quote

Old   April 15, 2015, 16:05
Default
  #5
New Member
 
Sergey
Join Date: Apr 2015
Posts: 3
Rep Power: 11
Leto is on a distinguished road
Quote:
Originally Posted by kebsiali View Post
From OpenFoam point of view (my point of view lol)
The dependencies are made based on the libraries you write in the Make/options file
whenever you include a header it is searched in these directories written in options file

Though from programmer point of view i dont know how this is actually done
so if all you want is to implement a new turbulence model it is my point of view that you need
Okay, and what about adding your own model without disabling existing?
Should we edit make/files or make/options to add our new dependencies?

And, finally, is any way to open OpenFOAM like project in Qt?
Leto is offline   Reply With Quote

Old   April 15, 2015, 16:10
Default
  #6
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
yeah
you name your model like myPowerLaw
Just like the guy in the link i gave you above did
about Qt i dont know Im just a new foamer started 2 months ago
kebsiali is offline   Reply With Quote

Old   April 21, 2015, 11:05
Default
  #7
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
Yes you can use qt with OF
https://openfoamwiki.net/index.php/H...with_QtCreator
lourencosm likes this.
hk318i is offline   Reply With Quote

Reply

Tags
building, openfoam 2.1.x, programming, project, qt4


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



All times are GMT -4. The time now is 12:40.