|
[Sponsors] |
![]() |
![]() |
#21 |
Member
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16 ![]() |
hello Martin;
excuse me; I did some change in the solver's code and compiled it eventually, but it seems has a main problem when running a case; It doesn't do well and gives this error: nano.zip I don't know what to do ![]() thanks; |
|
![]() |
![]() |
![]() |
![]() |
#22 |
Senior Member
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22 ![]() |
Hi Maryam ,
just add this line to constant/transportProperties: nu nu [0 2 -1 0 0 0 0] 1e-5; // value for kinematic viscosity Change the value to the correct one for your main fluid. Martin |
|
![]() |
![]() |
![]() |
![]() |
#23 |
Member
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16 ![]() |
hello;
thank you for reply;I want it read the nu from that formula which determined in the createFields not from transportProperties; If I change it's name there would be no problem? thanks |
|
![]() |
![]() |
![]() |
![]() |
#24 |
Senior Member
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22 ![]() |
Hi,
it will not work the way you have implemented it right now. In your createFields.H this transport model and a turbulence model (although it might be a laminar one) is defined: Code:
singlePhaseTransportModel laminarTransport(U, phi); autoPtr<incompressible::RASModel> turbulence ( incompressible::RASModel::New(U, phi, laminarTransport) ); Code:
+ turbulence->divDevReff(U) The more elegant solution would be to define your own viscosity model. These are located in OpenFOAM-xxx/src/transportModels/incompressible/viscosityModels/. There are examples how to make a new one in the forum. Martin |
|
![]() |
![]() |
![]() |
![]() |
#25 |
Member
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16 ![]() |
hello Martin;
I am extremely thankful for your kindness but I am beginner in openFoam and not familiar to the way that you said;could you explain more and tell me what shoud I do step by step; I realy apologize to you for my asking; thanks; |
|
![]() |
![]() |
![]() |
![]() |
#26 |
Senior Member
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22 ![]() |
Hi,
in your UEqn.H change: Code:
tmp<fvVectorMatrix> UEqn ( fvm::div(phi, U) // + turbulence->divDevReff(U) // removed - fvm::laplacian(nuEff, U) // nuEff is your effective viscosity - fvc::div(nuEff*dev(fvc::grad(U)().T())) // nuEff is your effective viscosity ); Code:
// singlePhaseTransportModel laminarTransport(U, phi); // autoPtr<incompressible::RASModel> turbulence //( // incompressible::RASModel::New(U, phi, laminarTransport) //); Code:
// turbulence->correct(); Code:
volTensorField gradU = fvc::grad(U); // gradU is not used in this context Martin |
|
![]() |
![]() |
![]() |
![]() |
#27 |
Member
Maryam Mousazadeh
Join Date: Oct 2010
Posts: 47
Rep Power: 16 ![]() |
Hello;
thank you a lot; I hope it'll resolve in this way ![]() |
|
![]() |
![]() |
![]() |
Tags |
case creation, openfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a new case from command line | gregh | OpenFOAM Pre-Processing | 25 | November 14, 2013 07:38 |
OpenFOAM Install problem | masb | OpenFOAM | 3 | May 25, 2009 11:32 |
Critical errors during OpenFoam installation in OpenSuse 11.0 | amscosta | OpenFOAM | 5 | May 1, 2009 14:06 |
Summer School on Numerical Modelling and OpenFOAM | hjasak | OpenFOAM | 5 | October 12, 2008 13:14 |
Creating new case for new user | wersoe | OpenFOAM Pre-Processing | 0 | April 20, 2008 13:03 |