Thank you, Alexander for fast reply. As far as I understand inletOutlet, b.c. depend on U vector direction but not magnitude.
I send forum private message to you. Best regards Leonid |
Hello,
Can I ask in " valueFraction*U + (1-valueFraction)*dU = 0 ", dU means the normal gradient of U, i.e. dU/dn, or just the difference between internalField velocity and boundary velocity? Bin Quote:
|
According to User Guide page 128 it is normal gradient. Learn to use documentation for such questions, it will be more usefull:-)
|
Hello makaveli_lcf
You wrote that you had written your own code for dT/dn = h_ext / k_f * (T_ext - T) this kind of BC. I am trying to solve a problem which concerns the same BC you have talked in post #18. Could you please send me your code of that BC. I would be grateful to you. thanks |
Hi,
the equation valueFraction * U + (1 - valueFraction) * dU/dy = 0 is not dimensionally consistent !! i think it should be valueFraction * U + (1 - valueFraction) *dU= 0 which dU is only the velocity difference any comments ? thanks |
Quote:
dU is not dU/dn it is just the difference between internalField velocity and boundary velocity because the equation must be dimensionally consistent by the way , i verified it using simple mesh and icoFoam solver thank you |
It is not necessary to guess what is what. Just have a look at the source code, otherwise why do we need it)))
So, from mixedFvPatchField.C: Code:
00142 template<class Type> U_wall = valueFraction*U0 + (1 - valueFraction)*(U_nearwall + Grad0 * dn) where U0 and Grad0 are our given reference values for boundary field and gradient at the wall. dn is the distance between center of the cell and the boundary face. Now it is possible to transform this condition in whatever form is necessary))) All gradients and matrix coefficients are calculated using this relation. Good luck! |
To implement something like this
Quote:
Code:
rightWall |
Partial slip boundary
thank u in advance!
|
ParticalSlip in OpenFOAM210
hi Foamers,
I am trying to compile particleSlip BC but it gives me error. can it be because of the version of OpenFoam because Alberto did code 2009 or 2010?can be the headers are different? The error is: Make/linux64GccDPOpt/particleSlipJohnsonJacksonFvPatchVectorField.o: In function `_GLOBAL__sub_I_particleSlipJohnsonJacksonFvPatchV ectorField.C': particleSlipJohnsonJacksonFvPatchVectorField.C:(.t ext.startup+0xaf): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructpatchConstructorTables()' particleSlipJohnsonJacksonFvPatchVectorField.C:(.t ext.startup+0xcc): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::patchConstructorTablePtr_' particleSlipJohnsonJacksonFvPatchVectorField.C:(.t ext.startup+0xef): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructpatchMapperConstructorTables()' particleSlipJohnsonJacksonFvPatchVectorField.C:(.t ext.startup+0x10f): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::patchMapperConstructorTablePtr_' particleSlipJohnsonJacksonFvPatchVectorField.C:(.t ext.startup+0x132): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::constructdictionaryConstructorTables()' particleSlipJohnsonJacksonFvPatchVectorField.C:(.t ext.startup+0x152): undefined reference to `Foam::fvPatchField<Foam::Vector<double> >::dictionaryConstructorTablePtr_' collect2: ld returned 1 exit status someone can help me? Thanks in advance |
particleSlipJohnsonJackson
Hi Foamers,
I would like to apply particleSlip BCs but I have following error and I could not find out the problem...please help me.. Create mesh for time = 0 Reading g Reading transportProperties --> FOAM FATAL ERROR: request for dictionary kineticTheoryProperties from objectRegistry region0 failed available objects of type dictionary are 4 ( fvSchemes fvSolution data transportProperties ) From function objectRegistry::lookupObject<Type>(const word&) const in file /opt/openfoam201/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 131. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #2 Foam::IOdictionary const& Foam::objectRegistry::lookupObject<Foam::IOdiction ary>(Foam::word const&) const in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libfiniteVolume.so" #3 Foam::particleSlipJohnsonJacksonFvPatchVectorField ::updateCoeffs() in "/home/recepkati/OpenFOAM/recepkati-2.0.1/platforms/linuxGccDPOpt/lib/libJohnsonJackson.so" #4 Foam:artialSlipFvPatchField<Foam::Vector<double> >::evaluate(Foam::UPstream::commsTypes) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libfiniteVolume.so" #5 Foam:articleSlipJohnsonJacksonFvPatchVectorField:a rticleSlipJohnsonJacksonFvPatchVectorField(Foam::f vPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/home/recepkati/OpenFOAM/recepkati-2.0.1/platforms/linuxGccDPOpt/lib/libJohnsonJackson.so" #6 Foam::fvPatchField<Foam::Vector<double> >::adddictionaryConstructorToTable<Foam::particleS lipJohnsonJacksonFvPatchVectorField>::New(Foam::fv Patch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/home/recepkati/OpenFOAM/recepkati-2.0.1/platforms/linuxGccDPOpt/lib/libJohnsonJackson.so" #7 Foam::fvPatchField<Foam::Vector<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/twoPhaseEulerFoam" #8 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricB oundaryField(Foam::fvBoundaryMesh const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/twoPhaseEulerFoam" #9 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readField(Foam::dictionary const&) in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/twoPhaseEulerFoam" #10 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&) in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/twoPhaseEulerFoam" #11 at phaseModel.C:0 #12 Foam::phaseModel::phaseModel(Foam::fvMesh const&, Foam::dictionary const&, Foam::word const&) in "/home/recepkati/OpenFOAM/recepkati-2.0.1/platforms/linuxGccDPOpt/lib/libphaseModel.so" Aborted thanks in advance.. |
Quote:
|
particleSlipJohnsonJackson
Hi Alex,
thank you very much for your quick answer. I have already the directory there. I am using twoPhaseEulerFoam solver and I implement particleSlipJohnsonJackson BC in the model which is also from tutorials case "bed2".my file looks like: dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { walls { type particleSlipJohnsonJackson; specularityCoefficient 0.5; } outlet { type zeroGradient; } inlet { type fixedValue; value uniform (0 0 0); } frontAndBackPlanes { type empty; } } I changed BC of the walls. and I have the directory kineticTheoryProperties in the model. thanks a lot again |
Quote:
bed2/constant/kineticTheoryProperties in tutorial |
particleSlipJohnsonJackson
1 Attachment(s)
Hi Alex,
yes I had a look to this file but I could not find the problem what I should add there? I attached the code as well. thank you very much and I appreciate your time to send me this suggestions. recep |
Do you have this file in your case folder?
|
Ok, if you look in your BC file
Quote:
but does not find. Which solver do you use? |
particleSlipJohnsonJackson
hi Alex,
I think you forget to say the name of the file, which file? best regards and thanks again recep |
no, that which you send me
|
particleSlipJohnsonJackson
hi Alex
I am using twoPhaseEulerFoam. yes, I understood the problem but I do not know how to modify it. thanks Recep |
All times are GMT -4. The time now is 20:41. |