|
[Sponsors] |
[FSI] how develop nu() in icoFluid solver of fsiFoam |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 | |||
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 8 ![]() |
Dear foamers
I want to add nu() as non-Newtonian fluid in icoFluid. the problem is in here "part of icoFluid" Quote:
Quote:
the compiler give this error. Quote:
Thanks |
||||
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 8 ![]() |
I replaced code with
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 22 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 8 ![]() |
Dear Khazaei
I used pisoFluid at first time, but have problem with converging. I change several time fvscheme and fvsolution, but nothing help to converge. May you know which configuration is good for pisoFluid? |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 22 ![]() |
well it is not possible to guess why the simulation diverges without knowing what kind of simulation you are trying to run.
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 8 ![]() |
It was study of Hron Turek (benchmark FSI2) that have problem with pisoFluid. But with icoFluid is good.
|
|
![]() |
![]() |
![]() |
![]() |
#7 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 22 ![]() |
Quote:
well I have already tested HronTurekFSI3 test case which should be much harder to converge without any problem using pisoFluid. Are you trying to model HronTurekFSI2 with non-Newtonian fluid? if you are still using old fsi toolkit you need to know that the direction of the calculated viscous force is wrong and you need to correct it in pachViscousForce() function. Just multiply the calculated force by (-1). This bug has already been patched in solids4Foam toolbox. |
||
![]() |
![]() |
![]() |
![]() |
#8 | ||||
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 8 ![]() |
Quote:
Quote:
Quote:
Quote:
Your recommend is very helpful. Thanks. |
|||||
![]() |
![]() |
![]() |
![]() |
#9 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 22 ![]() |
Quote:
Code:
tmp<vectorField> pisoFluid::patchViscousForce(constlabelpatchID)const { tmp<vectorField> tvF ( new vectorField(mesh().boundary()[patchID].size(), vector::zero) ); tvF() = rho_.value() *( mesh().boundary()[patchID].nf() & (-turbulence_->devReff()().boundaryField()[patchID]) ); return tvF; } Code:
//vectorField n = mesh().boundary()[patchID].nf(); //tvF() -= n*(n&tvF()); |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 8 ![]() |
Thanks for your note. I modify the code. So, do you have any proper fvscheme and fvsolution for tutorial of hron&Turek?
|
|
![]() |
![]() |
![]() |
![]() |
#11 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 22 ![]() |
Quote:
I haven't used any special changes in fvScheme or fvSolution. The same case should easily work with pisoFluid...I have just modified it to work with pisoFluid. |
||
![]() |
![]() |
![]() |
Tags |
fsifoam, non-newtonian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Help with element size | sandri_92 | ANSYS Meshing & Geometry | 14 | November 14, 2018 07:54 |
Creating New Solver: For particle-laden compressible jets | sankarv | OpenFOAM | 0 | April 4, 2010 18:06 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 14:08 |
Did someone develop a CIP solver | tachioka | OpenFOAM Running, Solving & CFD | 0 | October 10, 2007 10:17 |
Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 16:25 |