|
[Sponsors] |
[FSI] how develop nu() in icoFluid solver of fsiFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 20, 2019, 11:53 |
how develop nu() in icoFluid solver of fsiFoam
|
#1 | |||
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
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 |
||||
March 21, 2019, 06:01 |
|
#2 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
I replaced code with
Quote:
|
||
March 21, 2019, 06:49 |
|
#3 |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
||
March 21, 2019, 09:00 |
|
#4 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
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? |
|
March 23, 2019, 10:37 |
|
#5 |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
well it is not possible to guess why the simulation diverges without knowing what kind of simulation you are trying to run.
|
|
March 23, 2019, 11:43 |
|
#6 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
It was study of Hron Turek (benchmark FSI2) that have problem with pisoFluid. But with icoFluid is good.
|
|
March 23, 2019, 14:05 |
|
#7 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
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. |
||
March 24, 2019, 00:52 |
|
#8 | ||||
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Quote:
Quote:
Quote:
Quote:
Your recommend is very helpful. Thanks. |
|||||
March 24, 2019, 03:15 |
|
#9 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
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()); |
||
March 24, 2019, 16:33 |
|
#10 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Thanks for your note. I modify the code. So, do you have any proper fvscheme and fvsolution for tutorial of hron&Turek?
|
|
March 25, 2019, 05:18 |
|
#11 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Help with element size | sandri_92 | ANSYS Meshing & Geometry | 14 | November 14, 2018 08:54 |
Creating New Solver: For particle-laden compressible jets | sankarv | OpenFOAM | 0 | April 4, 2010 19:06 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |
Did someone develop a CIP solver | tachioka | OpenFOAM Running, Solving & CFD | 0 | October 10, 2007 11:17 |
Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 17:25 |