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

Fixed slip length BC blowing up?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2021, 03:11
Default Fixed slip length BC blowing up?
  #1
Senior Member
 
Join Date: Jun 2016
Posts: 102
Rep Power: 10
xuegy is on a distinguished road
Hello All,

I'm trying to implement a partial slip boundary condition that takes a fixed slip length as the input.
I modified JohnsonJacksonParticleSlip, which was based on partialSlip. The key calculation step is
Code:
this->valueFraction() = 1.0/(1.0+slipLength_*patch().deltaCoeffs());
which is the same as this thread How to access gradient near the boundary for Navier slip bc?
The original partialSlip BC worked fine. It just doesn't support non-uniform meshes with a fixed fraction value. I can compile this new BC, but it will blow up in 1 or 2 timesteps.
This is very confusing. 0<1/(1+non_negative_number*positive_number)<=1 always holds and I can't understand why it's blowing up.
I've attached my source code. It compiles with OF v2012. I would appreciate any kind of suggestion.
Attached Files
File Type: zip Archive.zip (4.8 KB, 1 views)
xuegy is offline   Reply With Quote

Old   March 10, 2021, 14:41
Default
  #2
Senior Member
 
Join Date: Jun 2016
Posts: 102
Rep Power: 10
xuegy is on a distinguished road
Seems like there's nothing wrong with the BC.
I mixed up 32bit solver with 64bit mesh and it blew up.
xuegy 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Equivalent length of helical coil Jeffreyb723 Main CFD Forum 0 August 18, 2017 23:26
boundary conditions for simpleFoam calculation foam_noob OpenFOAM Running, Solving & CFD 8 July 1, 2015 09:07
Free slip and no slip. Yung Fidelity CFD 2 August 16, 2006 10:24
Free slip and no slip. Yung Phoenics 3 March 2, 2006 12:04
Free slip and no slip. Yung Siemens 0 February 4, 2006 11:37


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