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

3D sail CFD boundary conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2013, 07:06
Default 3D sail CFD boundary conditions
  #1
New Member
 
Greg Johnston
Join Date: Apr 2012
Location: Perth, Australia
Posts: 3
Rep Power: 14
GregJ is on a distinguished road
Send a message via Skype™ to GregJ
I am new to OpenFoam and CFD generally. I have been running some examples (based on modified motorBike case) of a twisted wing sail.

I have had some success though with relatively small meshes as I run out of memory otherwise.

I have built a mesh around an .stl file and it runs ok and produces what seem like reasonable results (making no representation about the accuracy).

Now the issue I face is how to get the correct boundary conditions. I want to simulate the effect of atmospheric boundary layer (wind shear), vessel velocity and sheet angle on angle of attack. The angle of attack on sail varies along its span due to the effect of these. I want to be able to vary the inlet speed and direction and the vessel speed and direction (so I don't have to re-mesh for each run).

I have set up my mesh with the left hand an back walls as inlets and the right hand and front walls as outlet (the inlet direction will always be from the left and rear - i.e. starboard tack). This seems to work and allows me to generate a flow diagonally across the mesh.

First, question: Am I on the right track?
Second Question: How should I go about setting up the boundary conditions?

I can calculate a desired inlet vector at various heights using a half parabola then adding that to the vessel velocity vector. I am just not sure if this is the right approach and, if so, how to go about implementing it. My C++ knowledge is (so far) limited but I have some programming experience.

Thanks in advance.

Greg
GregJ is offline   Reply With Quote

Old   April 8, 2013, 23:30
Default
  #2
Member
 
Chris L
Join Date: Sep 2012
Posts: 53
Rep Power: 14
vbchris is on a distinguished road
Take a look at swak4foam and using the BC type groovyBC.
This is much easier to do than getting into programming and will solve many common BC issues.

It should let you use a math expression to set the appropriate inlet velocity profile.
One thought, can you rotate your sail so you can have only one inlet BC instead of 2. Then you can set the sides to cyclic and the far end to outlet.

Chris
vbchris is offline   Reply With Quote

Old   April 8, 2013, 23:48
Default
  #3
New Member
 
Greg Johnston
Join Date: Apr 2012
Location: Perth, Australia
Posts: 3
Rep Power: 14
GregJ is on a distinguished road
Send a message via Skype™ to GregJ
Chris,

Thanks for your response. I will take a look at swak4foam. I can rotate the sail but then this only represents s single operating angle. I wanted to avoid the need to remesh for each angle change.

Cheers

Greg
GregJ is offline   Reply With Quote

Old   April 21, 2013, 22:11
Default
  #4
New Member
 
Greg Johnston
Join Date: Apr 2012
Location: Perth, Australia
Posts: 3
Rep Power: 14
GregJ is on a distinguished road
Send a message via Skype™ to GregJ
Chris,
I have attempted to install swak4foam with no success. I get warnings like "could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy" and errors like "no known conversion for argument 1 from ‘Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>’ to ‘int’
make: *** [Make/linuxGccDPOpt/MeshesRepository.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on"

I have trawled through documentation and CFD online but this only confuses me more. I am using OpenFoam 2.2.0. I downloaded the tarball for swak4foam.

Any ideas of how I can progress through the maze?

Greg
GregJ is offline   Reply With Quote

Reply

Tags
boundary conditions, openfoam, sail, wind shear


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 06:58
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 18:15
Help with boundary conditions Dan CFX 0 April 3, 2006 12:32
Boundary Conditions Jan Ramboer Main CFD Forum 11 August 16, 1999 09:59


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