1 Attachment(s)
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: Attachment 7521 I don't know what to do:confused:; would you guide me? thanks; |
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 |
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 |
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); 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 |
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; |
Hi,
in your UEqn.H change: Code:
tmp<fvVectorMatrix> UEqn Code:
// singlePhaseTransportModel laminarTransport(U, phi); Code:
// turbulence->correct(); Code:
volTensorField gradU = fvc::grad(U); // gradU is not used in this context Martin |
Hello;
thank you a lot; I hope it'll resolve in this way:); This problem is just for nu and not for other properties like rho or k ; Am I right? |
All times are GMT -4. The time now is 07:51. |