CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Unknown patchField type

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2014, 09:09
Exclamation Unknown patchField type
  #1
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 12
gooya_kabir is on a distinguished road
Hi Guys,

I changed one library in
PHP Code:
 src/transportModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle 
to
PHP Code:
src/transportModels/twoPhaseProperties/alphaContactAngle/mydynamicAlphaContactAngle 
.
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:
libmytwoPhaseProperties.so 
to controldict, and I run the case with mydynamicAlphaContactAngle, error message comes:
PHP Code:
 --> FOAM FATAL IO ERROR
Unknown patchField type mydynamicAlphaContactAngle for patch type wall

Valid patchField types are 
:
.... 
Can anyone helps me?
thank you in advance for any comment.
gooya_kabir is offline   Reply With Quote

Old   April 15, 2014, 09:15
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 36
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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
    );
}
Wasn't able to guess it from your post.
gooya_kabir likes this.
alexeym is offline   Reply With Quote

Old   April 15, 2014, 09:22
Default
  #3
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 12
gooya_kabir is on a distinguished road
Thank you for reply.
Yes I changed all needed parts in .C and .H files. but I do not know what is wrong.
gooya_kabir is offline   Reply With Quote

Old   April 15, 2014, 09:38
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 36
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Can you post modified code?
alexeym is offline   Reply With Quote

Old   April 16, 2014, 05:11
Default
  #5
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 12
gooya_kabir is on a distinguished road
I attached the my dynamicAlphaContactAngle and Make.
Thanks
Attached Files
File Type: zip Make.zip (35.1 KB, 23 views)
File Type: zip mydynamicAlphaContactAngle.zip (5.7 KB, 36 views)
gooya_kabir is offline   Reply With Quote

Old   April 16, 2014, 05:23
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 36
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

it'll be better if you also attach test case but right now I've found this:

Code:
    //- Runtime type information
    TypeName("dynamicAlphaContactAngle");
in mydynamicAlphaContactAngleFvPatchScalarField.H. I think it'll be better to change it to

Code:
    //- Runtime type information
    TypeName("mydynamicAlphaContactAngle");
alexeym is offline   Reply With Quote

Old   April 16, 2014, 06:03
Default
  #7
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 12
gooya_kabir is on a distinguished road
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.
gooya_kabir is offline   Reply With Quote

Old   May 7, 2014, 08:30
Default
  #8
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 12
gooya_kabir is on a distinguished road
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.
gooya_kabir is offline   Reply With Quote

Old   May 7, 2014, 10:46
Default
  #9
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 36
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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?
alexeym is offline   Reply With Quote

Old   May 16, 2014, 08:01
Default
  #10
Member
 
Reza
Join Date: Feb 2012
Posts: 67
Rep Power: 12
gooya_kabir is on a distinguished road
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
gooya_kabir is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 20:29.