|
[Sponsors] |
Compiling a new BC for alphaConstantContactAngle |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 4, 2019, 13:12 |
Compiling a new BC for alphaConstantContactAngle
|
#1 |
New Member
Join Date: Feb 2019
Posts: 23
Rep Power: 7 |
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"); Attached are the two posibilities I've been testing unsuccessfully. I hope you can help me, I'm pretty lost. Regards, Adolfo |
|
July 17, 2019, 15:57 |
|
#2 |
New Member
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 12 |
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 |
|
July 17, 2019, 16:04 |
|
#3 | |
New Member
Join Date: Feb 2019
Posts: 23
Rep Power: 7 |
Quote:
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 |
||
November 29, 2019, 19:34 |
|
#4 | |
Member
Milad
Join Date: Jul 2015
Location: USA
Posts: 45
Rep Power: 11 |
Quote:
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 |
||
Tags |
compile, contact angle, interfoam |
|
|
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 08:30 |
Getting error both interpreting and compiling | serene6390 | Fluent UDF and Scheme Programming | 1 | October 27, 2017 01:49 |
All files present. but solver not compiling | saddy | OpenFOAM Programming & Development | 1 | July 29, 2017 10:50 |
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi | foamer123 | OpenFOAM Installation | 9 | August 20, 2015 15:03 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |