|
[Sponsors] |
Adding a BC for pointPatchField/tetPolyPatchField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2013, 11:30 |
Adding a BC for pointPatchField/tetPolyPatchField
|
#1 |
Senior Member
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 123
Rep Power: 18 |
Hello,
I just came across some strange problem which I could not solve yet. Maybe someone has a hint for me: I have created some user defined BC which I want to use in the "pointDisplacement" field of the fvMotionSolver as well as in the "motionU" field of the tetDecomposition motion solver. I therefore templated the class: Code:
template < template<class> class PatchField, class Mesh, class PointPatch, template<class> class MatrixType > class FEMDisplacementPatchVectorField : public FixedValuePointPatchField < PatchField, Mesh, PointPatch, MatrixType, vector > { .... }; Code:
typedef FEMDisplacementPatchVectorField<pointPatchField, pointMesh, pointPatch, DummyMatrix> FEMDisplacementPointPatchVectorField; makePointPatchTypeField ( fixedValuePointPatchVectorField, FEMDisplacementPointPatchVectorField ); Code:
typedef FEMDisplacementPatchVectorField<tetPolyPatchField, tetPointMesh, tetPolyPatch, tetFemMatrix> FEMDisplacementTetPolyPatchVectorField; makePointPatchTypeField(tetPolyPatchVectorField, FEMDisplacementTetPolyPatchVectorField); As far as I understand, there should be nothing changed in my code except than defining the appropriate preprocessor symbol. Or do I miss something? Thanks for any hint. Best regards, Hannes |
|
July 17, 2013, 09:39 |
|
#2 |
Member
Join Date: Sep 2012
Posts: 60
Rep Power: 13 |
Hi hannes,
case 1 : if you have compiled your new boundary condition under openfoam src, then you have to include that executable/ .so file in controlDict of your case. case 2 : if not as mentioned above, i.e. if you have compiled your b.c separately, you have to recompile your solver by including the new bc file in its header and changing files and options appropriately. from what i understand based on ur post, case 1 is the solution. hope this helps.. regards, achyutan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition setting for adding gravity in simpleFoam | norkistar | OpenFOAM Programming & Development | 3 | June 15, 2022 04:20 |
problem with Min/max rho | tH3f0rC3 | OpenFOAM | 8 | July 31, 2019 09:48 |
Adding linear generation in InterFOAM | voingiappone | OpenFOAM Programming & Development | 8 | June 14, 2013 00:47 |
car Cd drops after adding inlet and outlet? | wh88 | FLUENT | 0 | October 19, 2011 13:23 |
Help with chtMultiRegionFoam | jbvw96 | OpenFOAM Running, Solving & CFD | 2 | December 26, 2010 17:16 |