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

Compiling a new BC for alphaConstantContactAngle

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2019, 12:12
Default Compiling a new BC for alphaConstantContactAngle
  #1
New Member
 
Join Date: Feb 2019
Posts: 17
Rep Power: 3
dolfus is on a distinguished road
Hi everyone,


I'm trying to implement a new model for the dynamic contact angle, but as a starting point I'm triying to compile the alphaConstantContactAngle with a new name: yokoiAlphaConstantContactAngle just to see if I'll be able to implement then the model.

I've made all the changes needed in the files .C and .H but when I try to compile I have doubts about what to write in options and files , since this is not a regular BC stored in finiteVolume directory.

In fact, when adding the entry
Code:
libs ("xxx.so");
it is not able to load it.

Attached are the two posibilities I've been testing unsuccessfully.

I hope you can help me, I'm pretty lost.

Regards,

Adolfo
Attached Files
File Type: zip yokoiBC.zip (186.4 KB, 4 views)
File Type: zip yokoiBC2.zip (7.0 KB, 5 views)
dolfus is offline   Reply With Quote

Old   July 17, 2019, 14:57
Default
  #2
New Member
 
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 8
RobinZ is on a distinguished road
Hi Adolfo,


why dont you copy the aplhaContactAngle folder in the twoPhaseFlow folder and rename the copiied folder as you want. Then rename the .C and .H file and change the header entries to the new names and add your subfolder and the new .C file in the files file in the make folder.


This would look like:


/twoPhaseFlow/Make
/twoPhaseFlow/alphaContactAngle/
/twoPhaseFlow/alphaContactAngle/yokoiContactAngle/


files:
alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.C

alphaContactAngle/yokoiAlphaContactAngle/yokoiAlphaContactAngleFvPatchScalarField.C alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalar Field.C alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.C alphaContactAngle/timeVaryingAlphaContactAngle/timeVaryingAlphaContactAngleFvPatchScalarField.C alphaFixedPressure/alphaFixedPressureFvPatchScalarField.C
LIB = $(FOAM_LIBBIN)/libtwoPhasePropertiesalphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.C




can follow my hint? Is this not practical for you?


kind regards


Robin
RobinZ is offline   Reply With Quote

Old   July 17, 2019, 15:04
Default
  #3
New Member
 
Join Date: Feb 2019
Posts: 17
Rep Power: 3
dolfus is on a distinguished road
Quote:
Originally Posted by RobinZ View Post
Hi Adolfo,


why dont you copy the aplhaContactAngle folder in the twoPhaseFlow folder and rename the copiied folder as you want. Then rename the .C and .H file and change the header entries to the new names and add your subfolder and the new .C file in the files file in the make folder.


This would look like:


/twoPhaseFlow/Make
/twoPhaseFlow/alphaContactAngle/
/twoPhaseFlow/alphaContactAngle/yokoiContactAngle/


files:
alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.C

alphaContactAngle/yokoiAlphaContactAngle/yokoiAlphaContactAngleFvPatchScalarField.C alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalar Field.C alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.C alphaContactAngle/timeVaryingAlphaContactAngle/timeVaryingAlphaContactAngleFvPatchScalarField.C alphaFixedPressure/alphaFixedPressureFvPatchScalarField.C
LIB = $(FOAM_LIBBIN)/libtwoPhasePropertiesalphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.C




can follow my hint? Is this not practical for you?


kind regards


Robin

Thank you for your reply but finally I make it work few weeks ago, although I forgot to say that here. So in case anyone could find this helpful along Robin's reply, my files in the Make folder look like:


files


yokoiDynamicAlphaContactAngleFvPatchScalarField.C

LIB = $(FOAM_USER_LIBBIN)/yokoiBC




options


EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/transportModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle

EXE_LIBS = \
-lfiniteVolume




Regards,


Adolfo
dolfus is offline   Reply With Quote

Old   November 29, 2019, 18:34
Default
  #4
Member
 
Milad
Join Date: Jul 2015
Location: USA
Posts: 45
Rep Power: 7
mizzou is on a distinguished road
Quote:
Originally Posted by dolfus View Post
Thank you for your reply but finally I make it work few weeks ago, although I forgot to say that here. So in case anyone could find this helpful along Robin's reply, my files in the Make folder look like:


files


yokoiDynamicAlphaContactAngleFvPatchScalarField.C

LIB = $(FOAM_USER_LIBBIN)/yokoiBC




options


EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/transportModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle

EXE_LIBS = \
-lfiniteVolume




Regards,


Adolfo
Hi - I am also trying to compile a new contact angle model. That would be highly appreciated if you could please describe step by step how you made your new model work?

I guess, fist thing is to copy an existing model (e.g. constantAlphaContactAngle folder) in src/transportModels/twoPhaseProperties/alphaContactAngle and make necessary changes in .C and .H files. I am not sure about the next steps? should we modify the content of files and options in Make folder then? or we need to create a new files and options somewhere?
Also, what will be next step all the way to compile the new model?

Thanks
mizzou is offline   Reply With Quote

Reply

Tags
compile, contact angle, interfoam

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
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer wildfire230 OpenFOAM Installation 20 May 6, 2020 07:30
Getting error both interpreting and compiling serene6390 Fluent UDF and Scheme Programming 1 October 27, 2017 00:49
All files present. but solver not compiling saddy OpenFOAM Programming & Development 1 July 29, 2017 09:50
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi foamer123 OpenFOAM Installation 9 August 20, 2015 14:03
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 05:40


All times are GMT -4. The time now is 13:35.