|
[Sponsors] |
April 15, 2014, 09:09 |
Unknown patchField type
|
#1 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
Hi Guys,
I changed one library in PHP Code:
PHP Code:
I changed the related files in Make directory and also wmake libso works fine and library is up to date. when I add my library PHP Code:
PHP Code:
thank you in advance for any comment. |
|
April 15, 2014, 09:15 |
|
#2 |
Senior Member
|
Hi,
well... you've just renamed folders, corrected files in Make folder. But did you change actual source code? Especially this parts of dynamicAlphaContactAngleFvPatchScalarField.C Code:
namespace Foam { makePatchTypeField ( fvPatchScalarField, dynamicAlphaContactAngleFvPatchScalarField ); } |
|
April 15, 2014, 09:22 |
|
#3 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
Thank you for reply.
Yes I changed all needed parts in .C and .H files. but I do not know what is wrong. |
|
April 15, 2014, 09:38 |
|
#4 |
Senior Member
|
Can you post modified code?
|
|
April 16, 2014, 05:11 |
|
#5 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
I attached the my dynamicAlphaContactAngle and Make.
Thanks |
|
April 16, 2014, 05:23 |
|
#6 |
Senior Member
|
Hi,
it'll be better if you also attach test case but right now I've found this: Code:
//- Runtime type information TypeName("dynamicAlphaContactAngle"); Code:
//- Runtime type information TypeName("mydynamicAlphaContactAngle"); |
|
April 16, 2014, 06:03 |
|
#7 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
It works now . Thank you very much.
But I changed the whole "dynamics" globally to "mydynamic", I don't know why it did not work. |
|
May 7, 2014, 08:30 |
|
#8 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
Hi,
in continue of above modification, I tried to add sigma to the contact angle definition in mydynamicAlphaContactAngleFvPatchScalarField.C as : [CODE] return theta0_ + (thetaA_ - thetaR_)*sigma() *tanh(uwall/uTheta_);/CODE] I though if I add [CODE]tmp<volScalarField> sigma() const;/CODE] to the mydynamicAlphaContactAngleFvPatchScalarField.H, I define the sigma. but this one does not work. So, what should I do to be able to use sigma in first part? Thank you for your great comments. |
|
May 7, 2014, 10:46 |
|
#9 |
Senior Member
|
Hi,
1. What is sigma? Does it depend on location or it's just a constant? 2. What do you mean by "but this one does not work"? 3. And finally what's the implementation of sigma method you've defined? |
|
May 16, 2014, 08:01 |
|
#10 |
Member
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 14 |
thank you. Answering your question caused me to understand my problems which now I'm trying to solve. for example sigma is interfacial tension on the surface.
I will come back if I could not |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) | Aadhavan | OpenFOAM Meshing & Mesh Conversion | 2 | March 8, 2018 01:47 |
inlet pressure is higher than outlet pressure for fan | sivakumar | OpenFOAM Pre-Processing | 16 | December 30, 2017 14:16 |
BuoyantBoussinesqPimpleFoam Modification for LES Capability | simonsg | OpenFOAM | 11 | July 20, 2017 11:31 |
Inlet patch problems | martyn88 | OpenFOAM Running, Solving & CFD | 6 | April 21, 2017 18:34 |
Unknown patchField type compressible::alphatWallFunction for patch type wall | dante03 | OpenFOAM | 1 | April 10, 2014 01:15 |