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

Would OpenFOAM be good for this shortterm project distributed force field

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2005, 22:38
Default Hello! I'm currently near t
  #1
brooksmoses
Guest
 
Posts: n/a
Hello!

I'm currently near the end of my Ph.D. dissertation, and one of my committee members says that he'd like to see some 3D results as well as the 2D results that I've already created. But all the flow solvers I have now -- which are mostly things I've written myself -- are 2D (and a bit slow), so I'm looking around for a quick way to do some 3D calculations.

Essentially, what I need is this: a 3D box discretized with a regular cartesian grid of cubic grid cells, containing incompressible laminar flow with standard uniform-velocity inflow conditions on one and uniform-pressure outflow conditions on the other, and some form of symmetry conditions on the sides.

Furthermore (and this, of course, is the key piece), I have a distributed body force to apply to this flow, which amounts to a datafile containing a force to be applied to each grid cell in the mesh.

I'm wanting to have a steady-state solution for this flow, but a time-accurate solution that's been run to steady state would be ok. I expect the average mesh size will be something on the order of 32x32x128, and I'm hoping to get results on a desktop PC in a reasonable timeframe.

The main constraint, for me, is that ideally I'd like to be able to go from a state of downloading the 3D flow solver to running my calculations with no more than about two weeks of work. Thus, I need a program which is relatively easy to figure out how to use, and in which it will not be too difficult to implement this distributed body force field.

Would you recommend OpenFOAM for this purpose? What will be the hardest parts of doing this with OpenFOAM, and how difficult do you expect them to be? Are there other CFD programs that might be better for what I need?

Thanks very much!
  Reply With Quote

Old   November 1, 2005, 06:01
Default Almost all public domain or co
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Almost all public domain or commercial solvers should be able to do your problem.

re. OpenFOAM:
- you should be able to do this in two weeks.
- hardest parts: inserting your body force in the equations

Main problem is the lack of documentation re. your specific problem. But you should be able to find enough on this site or on the wiki.

- generate a mesh: blockMesh

- reading file with coordinates:
IFstream str("coord.xyz");
pointField cellCentres(str);

- finding cell at point: search this site for 'findCell'.

- adding to e.g. simpleFoam. Look in the source code and add to the equation for U.
mattijs is offline   Reply With Quote

Old   November 2, 2005, 04:58
Default Thanks for the advice! It d
  #3
brooksmoses
Guest
 
Posts: n/a
Thanks for the advice!

It does look like this wouldn't be too hard to figure out, indeed. (If nothing else, I could just look at the answers to the most recent questions -- seems I'm not the only person wanting to solve a flow with a body force!)
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Phase Field modeling in OpenFOAM adona058 OpenFOAM Running, Solving & CFD 35 November 16, 2021 01:16
PhD student project in CFD with OpenFOAM on hydro power generator cooling at Chalmers hani OpenFOAM 0 February 29, 2008 09:12
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 10:33
Manage openfoam solver project in KDevelop probably the last linker error any suggestion is welcome lakeat OpenFOAM Installation 0 July 7, 2007 11:01
SOS: Custom field force. adriano FLUENT 0 June 5, 2006 08:03


All times are GMT -4. The time now is 05:04.