|
[Sponsors] |
November 9, 2012, 07:48 |
|
#221 |
Member
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 14 |
Hi
I have two problem in viscoelastic: 1)I confused about stress boundary conditions in 3D models (walls) , zerogradient or fixedvalue ? 2)I want to solve taylor problem ( rotational concentric cylinders ) but it did not converge , I changed fvschemes fvsolution , but it just cause to changed ill conditions |
|
November 9, 2012, 08:24 |
|
#222 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Dear Ali,
1) You can use zerogradient, Jovani Favero explained why somewhere on this forum 2) Maybe your gradients are too sharp? Does mesh refinement help, or does this make it worse? You could try a gradual start-up of the flow, don't exactly remember how this is called in OpenFOAM, something like timeVaryingFixedValue (the OpenFOAM User Manual in combination with this forum and Google will probably give you sufficient information) Good luck! |
|
November 14, 2012, 13:40 |
having a problem with fixedFluxPressure in the viscoelasticFluidFoam package
|
#223 |
New Member
Joana Cruz
Join Date: Nov 2012
Posts: 2
Rep Power: 0 |
Hi!
I'm a recent user of OpenFoam and I need your help about the viscoelasticFluidFoam package. I'm facing an error when trying to use the fixedFluxPressure boundary condition to define the channel inlet/outlet pressure. I defined the "OpenFOAM/channel/0/p" as follow: «««««««««««««««««««««««««««««««««««««««««««««««««« «««««««««««««««««««««««««««««««««««««««««««««««««« «««««««««« /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM Extend Project: Open Source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type fixedFluxPressure; adjoint no; U U; phi phi; rho rho; } wall { type zeroGradient; } outlet { type fixedFluxPressure; adjoint no; U U; phi phi; rho rho; } symmetryPlane { type symmetryPlane; } } «««««««««««««««««««««««««««««««««««««««««««««««««« «««««««««««««««««««««««««««««««««««««««««««««««««« ««««««««««««« when trying to run my case, the program gives the following error: «««««««««««««««««««««««««««««««««««««««««««««««««« «««««««««««««««««««««««««««««««««««««««««««««««««« «««««««««««« --> FOAM FATAL ERROR: request for volScalarField (1|A(U)) from objectRegistry region0 failed available objects of type volScalarField are 1 ( p ) From function objectRegistry::lookupObject<Type>(const word&) const in file /home/joanacruz/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 131. FOAM aborting «««««««««««««««««««««««««««««««««««««««««««««««««« «««««««««««««««««««««««««««««««««««««««««««««««««« «««« I don't understand what's happen, because I'm using p as the object type in volscalarfield and I already use this boundary condition with icoFoam solver and it works fine. Thanks in advance Joana |
|
November 15, 2012, 05:46 |
|
#224 |
New Member
Emil Baric
Join Date: May 2012
Location: Graz. Austria
Posts: 12
Rep Power: 14 |
Hello everybody can someone help me about how can I plot shear components in paraView since the stressComponents postprocessing is not working in this case.
Thank you |
|
November 20, 2012, 12:03 |
|
#225 |
Senior Member
|
Hi everybody
I have some problems with my new solver that is a modified viscoelasticFluidFoam which I added to it temperature and Boussinesq assumption. when I ran it the below error appeared: Code:
Courant Number mean: 2925.82 max: 9889.16 deltaT = 3.51873e-106 --> FOAM Warning : From function Time::operator++() in file db/Time/Time.C at line 982 Increased the timePrecision from 20 to 21 to distinguish between timeNames at time 2 Time = 2.00000003865963549288 DILUPBiCG: Solving for Ux, Initial residual = 0.0020599, Final residual = 6.32235e-07, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 0.00485814, Final residual = 3.28543e-09, No Iterations 2 DILUPBiCG: Solving for T, Initial residual = 0.00258186, Final residual = 1.20616e-08, No Iterations 4 #0 Foam::error::printStack(Foam::Ostream&) in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #2 Uninterpreted: #3 Foam::PCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #4 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libfiniteVolume.so" #5 Foam::fvMatrix<double>::solve() in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/nbbvff2" #6 in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/nbbvff2" #7 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6" #8 in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/nbbvff2" Floating point exception is here anybody knows what should I do? thank you |
|
November 20, 2012, 21:52 |
|
#226 |
New Member
k zhang
Join Date: Jun 2012
Location: China
Posts: 9
Rep Power: 14 |
hello, every formers
i am a newcomer of the viscoelasticFluidFoam. In the tutorial of Leonov constitutive, I am confused with the four parameters(rho,etaS, etaP, lambda). I have seeked some papers to want to make them certain, but .... About the Leonov constitute equation, there are about 11 parameters to describe the equation in a software. So I want to know about the parameters in viscoelasticFluidFoam, how can i find the four-parameter model of Leonov (rho, etaS, etaP, lambda)? In some papers?can someone kindly help me? |
|
November 21, 2012, 10:24 |
|
#227 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
Hi
To adambarfi: It seems you have convergence problem. To skykzhang See the Bird's Rheology of Polymers book. |
|
November 21, 2012, 12:37 |
|
#228 |
Senior Member
|
Dear Ata,
thank you for your reply, I fixed it. But I have some problem with my T contour. it seems to be wrong. I hope that I can fix it, otherwise I will be here again |
|
November 26, 2012, 00:50 |
|
#229 |
New Member
k zhang
Join Date: Jun 2012
Location: China
Posts: 9
Rep Power: 14 |
Thank u! Ata.
I will use the solver to simulate polymer injection. |
|
December 8, 2012, 10:49 |
|
#230 |
Senior Member
|
hi everybody
again I have the same problem I posted 2 weeks ago!!! this error: Code:
Courant Number mean: 244.174 max: 825.398 deltaT = 3.09674e-105 --> FOAM Warning : From function Time::operator++() in file db/Time/Time.C at line 982 Increased the timePrecision from 21 to 23 to distinguish between timeNames at time 2.64 Time = 2.6400000319743162080499 DILUPBiCG: Solving for Ux, Initial residual = 0.00206474, Final residual = 6.42745e-07, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 0.00481591, Final residual = 3.30023e-09, No Iterations 2 DILUPBiCG: Solving for T, Initial residual = 0.00259811, Final residual = 1.11192e-08, No Iterations 4 #0 Foam::error::printStack(Foam::Ostream&) in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #2 Uninterpreted: #3 Foam::PCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #4 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libfiniteVolume.so" #5 Foam::fvMatrix<double>::solve() in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/nbbvff2" #6 in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/nbbvff2" #7 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6" #8 in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/nbbvff2" Floating point exception I added temperature equation and Boussinesq assumption to viscoelasticFluidFoam. it works for normal viscoelastic fluids. but when I want to solve my problem with above data, it failed. anybody knows where is wrong? thank you |
|
January 8, 2013, 11:24 |
Simulation of thixotropic fluids
|
#231 |
New Member
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 24
Rep Power: 17 |
Dear FOAMers,
I would like to simulate a process like this in the future: - Spray injection of a fluid (I guess we can exclude the injection itself, the beginning point would be a given particle distribution) - Spray hits vertical wall, a wall film develops and the wall film starts moving downwards - after a while the wall film stops moving due to increasing viscosity The fluid to be used for the simulation is a thixotropic fluid which is highly viscous under high shear but then gets less viscous after the period of high shear ends. The original models implemented in OpenFOAM (power law, Cross, Carreau, etc.) are in my opinion not suitable as they do not take care of the temporal change of viscosity. That's why I came across this thread which seems to handle this problem. So my questions are: 1) Is possible to make such simulations with OF (Well, I guess the answer to this question is: "everything is possible with OF" ) -- with a reasonable effort? 2) Are the models in viscoelasticFluidFoam generally suitable? 3) What is the state of the viscoelasticInterFoam solver already mentioned in this thread? Thank you for your help - any help is highly appreciated. Stefan |
|
February 22, 2013, 16:21 |
|
#233 |
Senior Member
|
||
March 4, 2013, 13:11 |
|
#234 |
Senior Member
|
Hello everybody,
Is here anybody knows how can I define a temperature dependent viscosity in viscoelasticFluidFoam. I before add temperature equation to the solver. mu(T)=mu1*exp(-gamma*(T-TRef)) thank you Mostafa Last edited by adambarfi; March 4, 2013 at 14:46. |
|
March 4, 2013, 14:46 |
|
#235 |
Senior Member
|
hi everybody again,
I started it with adding a volScalarField& T to the solver and make some modifications. also, since I need gamma and T1, I added them in viscolesticLaws/GiesekusTDependent/GiesekusTDependent.C and GiesekusTDependent.H when I want to make it the following error appeared: Code:
Making dependency list for source file viscoelasticLaws/GiesekusTDependent/GiesekusTDependent.C SOURCE=viscoelasticLaws/GiesekusTDependent/GiesekusTDependent.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/GiesekusTDependent.o viscoelasticLaws/GiesekusTDependent/GiesekusTDependent.C: In member function ‘virtual Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > Foam::GiesekusTDependent::divTau(Foam::volVectorField&) const’: viscoelasticLaws/GiesekusTDependent/GiesekusTDependent.C:78:50: error: no match for ‘operator-’ in ‘((const Foam::GiesekusTDependent*)this)->Foam::viscoelasticLawTDependent::T - ((const Foam::GiesekusTDependent*)this)->Foam::GiesekusTDependent::Tn_’ /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionSet.H:255:29: note: candidates are: Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionSet.H:263:29: note: Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&, const Foam::dimensionSet&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionedScalar.H:52:19: note: Foam::dimensionedScalar Foam::operator-(const Foam::dimensionedScalar&, Foam::scalar) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionedScalar.H:53:19: note: Foam::dimensionedScalar Foam::operator-(Foam::scalar, const Foam::dimensionedScalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::scalar&, const Foam::UList<double>&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::scalar&, const Foam::tmp<Foam::Field<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::UList<double>&, const Foam::scalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::tmp<Foam::Field<double> >&, const Foam::scalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::label&, const Foam::UList<int>&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::label&, const Foam::tmp<Foam::Field<int> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::UList<int>&, const Foam::label&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::tmp<Foam::Field<int> >&, const Foam::label&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::diagTensor&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::diagTensor&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::tensor&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::tensor&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/vectorTensorTransformI.H:283:36: note: Foam::vectorTensorTransform Foam::operator-(const Foam::vectorTensorTransform&, const Foam::vector&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/quaternionI.H:273:25: note: Foam::quaternion Foam::operator-(const Foam::quaternion&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/quaternionI.H:279:25: note: Foam::quaternion Foam::operator-(const Foam::quaternion&, const Foam::quaternion&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/septernionI.H:190:25: note: Foam::septernion Foam::operator-(const Foam::septernion&, const Foam::vector&) viscoelasticLaws/GiesekusTDependent/GiesekusTDependent.C:84:53: error: no match for ‘operator-’ in ‘((const Foam::GiesekusTDependent*)this)->Foam::viscoelasticLawTDependent::T - ((const Foam::GiesekusTDependent*)this)->Foam::GiesekusTDependent::Tn_’ /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionSet.H:255:29: note: candidates are: Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionSet.H:263:29: note: Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&, const Foam::dimensionSet&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionedScalar.H:52:19: note: Foam::dimensionedScalar Foam::operator-(const Foam::dimensionedScalar&, Foam::scalar) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionedScalar.H:53:19: note: Foam::dimensionedScalar Foam::operator-(Foam::scalar, const Foam::dimensionedScalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::scalar&, const Foam::UList<double>&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::scalar&, const Foam::tmp<Foam::Field<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::UList<double>&, const Foam::scalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::tmp<Foam::Field<double> >&, const Foam::scalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::label&, const Foam::UList<int>&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::label&, const Foam::tmp<Foam::Field<int> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::UList<int>&, const Foam::label&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::tmp<Foam::Field<int> >&, const Foam::label&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::diagTensor&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::diagTensor&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::tensor&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::tensor&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/vectorTensorTransformI.H:283:36: note: Foam::vectorTensorTransform Foam::operator-(const Foam::vectorTensorTransform&, const Foam::vector&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/quaternionI.H:273:25: note: Foam::quaternion Foam::operator-(const Foam::quaternion&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/quaternionI.H:279:25: note: Foam::quaternion Foam::operator-(const Foam::quaternion&, const Foam::quaternion&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/septernionI.H:190:25: note: Foam::septernion Foam::operator-(const Foam::septernion&, const Foam::vector&) viscoelasticLaws/GiesekusTDependent/GiesekusTDependent.C: In member function ‘virtual void Foam::GiesekusTDependent::correct()’: viscoelasticLaws/GiesekusTDependent/GiesekusTDependent.C:106:27: error: no match for ‘operator-’ in ‘((Foam::GiesekusTDependent*)this)->Foam::viscoelasticLawTDependent::T - ((Foam::GiesekusTDependent*)this)->Foam::GiesekusTDependent::Tn_’ /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionSet.H:255:29: note: candidates are: Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionSet.H:263:29: note: Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&, const Foam::dimensionSet&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionedScalar.H:52:19: note: Foam::dimensionedScalar Foam::operator-(const Foam::dimensionedScalar&, Foam::scalar) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/dimensionedScalar.H:53:19: note: Foam::dimensionedScalar Foam::operator-(Foam::scalar, const Foam::dimensionedScalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::scalar&, const Foam::UList<double>&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::scalar&, const Foam::tmp<Foam::Field<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::UList<double>&, const Foam::scalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/scalarField.H:78:1: note: Foam::tmp<Foam::Field<double> > Foam::operator-(const Foam::tmp<Foam::Field<double> >&, const Foam::scalar&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::label&, const Foam::UList<int>&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::label&, const Foam::tmp<Foam::Field<int> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::UList<int>&, const Foam::label&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/labelField.H:54:1: note: Foam::tmp<Foam::Field<int> > Foam::operator-(const Foam::tmp<Foam::Field<int> >&, const Foam::label&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:61:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::diagTensor&, const Foam::UList<Foam::Tensor<double> >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::diagTensor&, const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::UList<Foam::DiagTensor<double> >&, const Foam::tensor&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/diagTensorField.H:64:1: note: Foam::tmp<Foam::Field<Foam::Tensor<double> > > Foam::operator-(const Foam::tmp<Foam::Field<Foam::DiagTensor<double> > >&, const Foam::tensor&) /home/mostafa/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/vectorTensorTransformI.H:283:36: note: Foam::vectorTensorTransform . . . any body knows what should i do? thanks Mostafa Last edited by adambarfi; March 4, 2013 at 15:33. |
|
March 11, 2013, 11:11 |
|
#237 |
Senior Member
|
||
March 20, 2013, 03:36 |
|
#238 |
New Member
salame ama
Join Date: Dec 2012
Posts: 28
Rep Power: 14 |
HI, Formers:
i want to combine the viscoelasticFluidFoam and InterFoam. Now, about the transportProperties file, write the code as it in the InterFoam tutorial: phase1 { type multiMode; models ( first { type Giesekus; rho rho [1 -3 0 0 0 0 0] 803.87097; etaS etaS [1 -1 -1 0 0 0 0] 0.002; etaP etaP [1 -1 -1 0 0 0 0] 0.04; lambda lambda [0 0 1 0 0 0 0] 0.6855; alpha alpha [0 0 0 0 0 0 0] 0.5; } second { type Giesekus; rho rho [1 -3 0 0 0 0 0] 803.87097; ..... phase2 { type multiMode; models ( first { type Giesekus; rho rho [1 -3 0 0 0 0 0] 1; etaS etaS [1 -1 -1 0 0 0 0] 0; etaP etaP [1 -1 -1 0 0 0 0] 0.0000148; lambda lambda [0 0 1 0 0 0 0] 0; alpha alpha [0 0 0 0 0 0 0] 0; } ..... but it said: Reading transportProperties --> FOAM FATAL IO ERROR: keyword transportModel is undefined in dictionary "/home/caelinux/zk/try/constant/transportProperties:hase1" file: /home/caelinux/zk/try/constant/transportProperties:hase1 from line 20 to line 64. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 396. can u give me a hand? |
|
March 20, 2013, 04:31 |
|
#239 |
Senior Member
|
Greeting, welcome and happy your Nowruz day!!!!
did you modify the transportModel and your new solver files so that they contain both viscoelasticFluidFoam and interFoam information??? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VOF simulation of a viscoelastic fluid | sinah | OpenFOAM Running, Solving & CFD | 11 | December 25, 2017 04:00 |
FREE SURFACE VISCOELASTIC FLOWS | Valdemir G. Ferreira | Main CFD Forum | 6 | December 18, 2009 07:14 |
Viscoelastic flow modeling in OpenFOAM | vulda | OpenFOAM Running, Solving & CFD | 1 | March 17, 2008 08:32 |
Polyflow & OpenFoam on Viscoelastic flow modeling | Sumeshen | Main CFD Forum | 0 | March 14, 2008 09:29 |
Viscoelastic fluid codes | joel davison | Main CFD Forum | 0 | November 6, 2001 06:09 |