CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

CFD4Home

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2009, 18:40
Default CFD4Home
  #1
New Member
 
Steve J
Join Date: Dec 2009
Posts: 6
Rep Power: 16
RipVanCFD is on a distinguished road
Hello to the community. I'm looking for advice on getting started with a basic CFD capability at home (small simple models, Euler would be fine). I would prefer not to spend much on this experiment at least not initially. I'm not completely uninitiated, but it's been a long time. I haven't used Unix or Linux in a while, I've been living in a Windows world. I did my MS in fluids in 1996 and wrote a 2-d ENO Euler solver from scratch that was based on a Godunov-like scheme with a Reimann solver with characteristic sub/supersonic BCs in FORTRAN. I made grids for simple geometry by writing short programs. I thought that was interesting because of the apparent analogy to little shock tubes.
At work, I've had occasion to make only one or two models like a 3-d NS NASTD aircraft model (ICEM grid 4-5 million points) with flowing inlets, but always with help from company CFD colleagues. Sadly, I have not had the need to use CFD in my work for the most part, we have a CFD department.
Dare I ask, is there a recommended free CFD SW package? I may need some hobbies soon, so setting this up could be one.
I have a P4 2.75 mhz pc sitting here on which I could load Linux for the inital test before buying more capability.
Thanks in advance for your advice.
RipVanCFD is offline   Reply With Quote

Old   December 16, 2009, 19:17
Default
  #2
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
Im not sure what the "SW" stand for in "CFD SW package" but i am currently learing OpenFoam1.6. Some people who have used other free cfd packages tell me that its code is laid out weird, but since it is my first opensource cfd package it works great for me.

Id recommend visiting Madds' Cookbook for an easy installation:
http://www.cfd-online.com/Forums/ope...-cookbook.html

I was using a 2.8ghz and just upgraded to an i7. I did some benchmarking and posted it here:
http://www.cfd-online.com/Forums/har...benchmark.html
ericnutsch is offline   Reply With Quote

Old   December 16, 2009, 21:39
Default Thanks
  #3
New Member
 
Steve J
Join Date: Dec 2009
Posts: 6
Rep Power: 16
RipVanCFD is on a distinguished road
Eric, thanks for your advice. I'm replying via iPhone but when I get home I'll look more carfully at the link you provided. Open Foam was definately one of my best candidates. I'm hopeful that I'll finally get started with some basic capability in cfd at home. Thanks again, and I'll let you know how it goes.
Steve
RipVanCFD is offline   Reply With Quote

Old   December 19, 2009, 10:04
Default
  #4
Senior Member
 
John Chawner
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 275
Rep Power: 18
jchawner is on a distinguished road
I am told that Code Saturne (http://research.edf.com/the-edf-offe...ne-107008.html) is also very nice.
__________________
John Chawner / jrc@pointwise.com / www.pointwise.com
Blog: http://blog.pointwise.com/
on Twitter: @jchawner
jchawner is offline   Reply With Quote

Old   December 30, 2009, 01:43
Default First attempt
  #5
New Member
 
Steve J
Join Date: Dec 2009
Posts: 6
Rep Power: 16
RipVanCFD is on a distinguished road
I went the OpenFOAM route first. Using a 3 mhz P4 and, ok gasp 512M memory, Umbutu 9.10, I attempted to Makewall. I was copying the log to check on the progress and it was still moving along after about 40 hours.I had to leave the house for a few days and didn't want to leave the pc cranking away with an OS I was not familiar with, so I interrupted the make. I think i need to see what obj modules I have and modify the make to do the rest. Do you think this will work?
RipVanCFD is offline   Reply With Quote

Old   December 30, 2009, 19:42
Default
  #6
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
RipVanCFD,

I am not exactly sure what you are doing, but 40hrs on a 3ghz is pretty extensive. Perhaps you need more memory for your application. Once you go beyond the memory limit of your application it frequently accesses the hard drive turning a 2hour project into a 2week project.

Not sure that answered your question, but its a thought
ericnutsch is offline   Reply With Quote

Old   December 31, 2009, 22:47
Default
  #7
New Member
 
Steve J
Join Date: Dec 2009
Posts: 6
Rep Power: 16
RipVanCFD is on a distinguished road
Eric, thanks, memory did the trick. I could see the swap space was in use before the RAM change. Umbutu's system monitor allowed me to watch memory used (300-400 MB) and swap space in use (100-200MB). These numbers were pretty dynamic so it did not seem like it was that much of a burden on the system to be using that much swap - plus, this was the system I was stuck with (at least for that time).

After considering buying a new computer, and not knowing if any of this would work out in the end, I decided to go the cheapest route and buy some memory. I got a packaged pair of 1G modules, abt $65 (after rebate!) for the two slots I have, max-ing out the memory at 2G on this Dimension 3000 P4 3Ghz. Finding myself once again a student of Linux, I decided to just re-run the full Allwmake step after installing the 2GB, instead of trying to figure out how to salvage what had already been done. I'm not sure what options are available in the make, one must be to skip a step that already has a "current" obj.

With the new memory, the difference was clear immediately, there was no swap activity and during peaks, about 520MB memory was in use. This confirms that 512MB was below the minimum memory for this task. The Umbutu system monitor was showing a plot for two CPUs (is this what hyperthreading is?) and fairly long stretches of 100% on one cpu while the other was relatively idle and then it would trade places with the "other CPU" ( for thermal?). I set out on the bicycle and left it for about 2 hrs. When i returned I was not able to get the screen to come back on regardless of what i did with mouse or keyboard. I had disabled the screen saver and am using a KVM switch which I'm guessing is probably not supported completely by Umbutu. I was looking at a black screen. After a few minutes I did a hard power down. The last entry i the log was
make[1]: Leaving directory `/home/steve/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
I think it was not done, but had finished enough such that the installation check had no critical invalids.
I went looking for a super-simple, beginning-to-end, check case script. No luck on that one, so this is going to be a veritable plethora of learning for me.
I ran something I found in the tutorial directory, potential, cylinder. It seemed to run ok - less than 30 seconds clock time. I haven't found the easy one-button plotting feature yet (ha ha).
Any suggestions for my next step in the learning process?
Thanks for your advice.
RipVanCFD is offline   Reply With Quote

Old   January 1, 2010, 15:16
Default
  #8
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
RipVanCFD,

Good to hear that the memory helped.

Yes the 2 cpus is due to hyperthreading. Mine shows an oscillation in 100% loads from processor to processor as well. I belive this is how the software/os perceives it rather than what is actually occurring. It might be interesting to turn hyperthreading off in the bios and see if you get a performance increase or decrease(let us know how it goes if you decide to).

I belive the blank screen its due to a screen lock. If it happens again just type your user(or possibly root) password and hit enter. Sometimes it takes two times for it two work( I arrived at that solution by dumb luck).

As far as a good next step, you may want to try out the airfoil2d tutorial. I put together a simple benchmark forum on it here:
http://www.cfd-online.com/Forums/har...benchmark.html

Best of Luck!

Last edited by ericnutsch; January 5, 2010 at 12:04.
ericnutsch is offline   Reply With Quote

Old   January 1, 2010, 18:17
Default
  #9
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
You can set your Ubuntu to use the swap only after 80-90% of your physical memory is in use, "ubuntu swappiness on Google".

By default this is set at about 50% if I remember correctly which is stupid if you have for example 2GB of RAM the system will use the swap even if you have 1GB free.

Also you should disable all the graphical effects from Ubuntu - you will recover some extra RAM.
DoHander is offline   Reply With Quote

Old   January 8, 2010, 15:25
Default I need a CFD Analysis
  #10
New Member
 
Donna
Join Date: Jan 2010
Location: Boynton Beach, Fl
Posts: 1
Rep Power: 0
escomc is on a distinguished road
Send a message via Skype™ to escomc
Hi, I am new to this forum and to CFD, I need to find someone that can do a CFD analysis inexpensively. Is there a site to go to or any advice?
escomc is offline   Reply With Quote

Old   January 8, 2010, 15:27
Default
  #11
New Member
 
Steve J
Join Date: Dec 2009
Posts: 6
Rep Power: 16
RipVanCFD is on a distinguished road
DoHander
Great tips, thanks. It should be helpful in the future also.
I just got back from another trip - I hope I can find some more time now to get a little farther with the set-up here.
RipVanCFD is offline   Reply With Quote

Old   January 8, 2010, 18:01
Default
  #12
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
escomc,

I recommend that you post your job on this website(cfd-online). http://www.cfd-online.com/Jobs/

There are many people who check this on a regular basis for full time and contract work(myself included).

Good luck in your hunt!
ericnutsch is offline   Reply With Quote

Old   January 10, 2010, 18:48
Default
  #13
New Member
 
Steve J
Join Date: Dec 2009
Posts: 6
Rep Power: 16
RipVanCFD is on a distinguished road
Hey Eric,
Below is from the log of the run. The time was 57.86 seconds. It's one of the older, coal-fired PCs.

It looks like the extra memory (or slightly faster clock rate) made only a modest difference .
Dell Dimension 3000 Pentium 4 running at 3.0 GHz, single processor, 2 GB DDR RAM.
[installed Patriot 2GB (2x1GB kit) "PSD2G400K" "PC3200 400 MHz"]
Ubuntu 9.10 32 bit
Open FOAM 1.6

But I still haven't found where the pretty colour pictures come out. : )
Do we have anything in the way of grid generation and solution visualisation tools?

Cheers,
Steve

Time = 500

smoothSolver: Solving for Ux, Initial residual = 1.08774e-07, Final residual = 1.05461e-08, No Iterations 2
smoothSolver: Solving for Uy, Initial residual = 4.31634e-08, Final residual = 9.44679e-09, No Iterations 2
GAMG: Solving for p, Initial residual = 9.7231e-07, Final residual = 9.7231e-07, No Iterations 0
time step continuity errors : sum local = 1.64311e-09, global = 1.98362e-17, cumulative = 1.2383e-14
smoothSolver: Solving for nuTilda, Initial residual = 2.16267e-07, Final residual = 2.02589e-08, No Iterations 2
ExecutionTime = 57.86 s ClockTime = 58 s

End
RipVanCFD is offline   Reply With Quote

Old   January 10, 2010, 20:36
Default
  #14
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
For visualization, pretty much everyone uses paraview. OpenFOAM 1.6 comes packaged with paraview.(lots of info in the user manual chapter 6)

Try running "paraFoam" in your case directory( this is a handy pre-installed function that converts your case to vtk and opens it in paraview)

If it doesnt work you can also use "foamToVTK"; then manually open the .vtk file with paraview.

I have been having good luck using Gmsh for grid generation. I recommend giving it a try.
http://www.cfd-online.com/Forums/openfoam-meshing-gmsh/

Cheers!
ericnutsch is offline   Reply With Quote

Reply

Tags
advice, help me, hobby, which sw


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:59.