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

Problems with cyclic boundaries in faMeshDefinition and surfactantFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2011, 18:43
Default Problems with cyclic boundaries in faMeshDefinition and surfactantFoam
  #1
New Member
 
Sam Fredriksson
Join Date: Dec 2010
Posts: 20
Rep Power: 15
safre is on a distinguished road
I would like to use a solver similar to surfactantFoam but the with the finite volume solution to update the finite area velocity field. This works fine but I have problems with setting up the faMeshDefinition file and the surfactant concentration file Cs in the 0 directory when I use cyclic boundary conditions. The makeFaMesh is doing fine and creates the faBoundary file as it should but when I start the solver and the solver reads the Cs file I get.

"Floating point exception".

The setup works for other boundary conditions but not the cyclic one. Does anyone has experienced the same or what is wrong?

Plaes find my faMeshDefinition and mys Cs file below.

faMeshDefinition:

polyMeshPatches 1( surface );

boundary
{
frontAndBack
{
type cyclic;
ownerPolyPatch surface;
neighbourPolyPatch frontAndBack;
}

side
{
type cyclic;
ownerPolyPatch surface;
neighbourPolyPatch side;
}
}

Cs:
dimensions [1 -2 0 0 0 0 0];

internalField uniform 0;

referenceLevel 0;

boundaryField
{
frontAndBack
{
type cyclic;
}

side
{
type cyclic;
}
}

Best regards, Sam
safre is offline   Reply With Quote

Old   December 12, 2011, 05:05
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Sam

I have had problems with finite area and cyclic boundary conditions, however, I have never had problems with initialising the field. The problem I encountered is only a concern if your fields on FAM are either vector or tensor fields.

Well, I had a more careful look at your faMeshDefinition-file, and your frontAndBack is set to cyclic, however, frontAndBack is typically empty, so does it make sense?

/ Niels
ngj is offline   Reply With Quote

Old   December 12, 2011, 08:34
Default
  #3
New Member
 
Sam Fredriksson
Join Date: Dec 2010
Posts: 20
Rep Power: 15
safre is on a distinguished road
Hello Niels,

thank you for your answer. It might be misleading of me to call it frontAndBack but it is a three dimensional domain so yes it make sense to have them cyclic as well and it works well in the fvm solution.

You said that you had problems - did you make it work in the end? Was it a similar problem with a coupling between a fvm and a fam solutions? I solve for a velocity field and a scalar concentration field in the fam solver.

Best regards, Sam
safre is offline   Reply With Quote

Old   December 12, 2011, 08:56
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Sam

The problem is/was that the transformations of vector/tensor fields across the cyclic boundary conditions are wrong! I have made a full bug-report here with a suggested solution:

http://sourceforge.net/apps/mantisbt...view.php?id=87

Nevertheless, I do not know if it has been integrated into the git, as I have not been using the finite area method for quite some time.

/ Niels
ngj 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



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