Commit graph

4644 commits

Author SHA1 Message Date
Vuko Vukcevic
095ac84cb4 Update to overset validationSuite NACA4412 case
Switched from old overlpa assembly to new adaptiveOverlap assembly
2018-07-30 09:11:05 +02:00
Vuko Vukcevic
2f00bb4af1 Update to noSuitability DSF
Threshold now needs to be set to SMALL due to changed definition of DSF's
isDonorSuitable and suitabilityFraction member functions.
2018-07-30 08:32:00 +02:00
Vuko Vukcevic
657c6abfb8 Updates to overset tutorials using overlap fringe 2018-07-30 08:31:41 +02:00
Vuko Vukcevic
9ec8d55010 Include coupledFvPatchFields.H instead of coupledFvPatchField.H 2018-07-27 11:03:56 +02:00
Vuko Vukcevic
875f0809a3 Writing regionIndex automatically 2018-07-26 16:27:31 +02:00
Vuko Vukcevic
6ba57d44fc Bugfixes in automatic overlap assembly
adaptiveOverlapFringe:
1. When combining user specified holes and cut holes, we need to get rid of
   possible duplicates,
2. All holes transferred to fringeHolesPtr_, not just cutHoles,
3. Removed minLocalSuit_ data member as the donorSuitability::threshold is
   basically the same thing.

donorSuitability:
1. Correct definition of isDonorSuitable
2018-07-26 15:46:05 +02:00
Vuko Vukcevic
dbbad653fe Updates to overlap assembly strategies
Added optional cellSet for hole cells to start the overlap and adaptiveOverlap
from. Useful when the background mesh is very coarse compared to the hole patch
in the front mesh and no hole is actually found in triSurface hole cutting
procedure.
2018-07-25 07:37:09 +02:00
Vuko Vukcevic
93e8ebe4cc Changed default value for minLocalSuit in adaptiveOverlapFringe 2018-07-23 09:48:59 +02:00
Vuko Vukcevic
ef5f6a5f59 Donor/acceptor within boundig box criterion update
Previously, we only checked whether the acceptor point is within bounding box of
donor, which may not be fair. Now, we also check whether the donor point is
within bounding box of acceptor.

Having both checks makes sense since there's no reason to prefer one criterion
over the other.
2018-07-16 16:39:09 +02:00
Vuko Vukcevic
b46ede8553 Bugfix: suitablePairsSuit_ must be data member 2018-07-16 15:34:54 +02:00
Vuko Vukcevic
3142fa27ee Parallelised adaptiveOverlapFringe 2018-07-16 14:13:31 +02:00
Vuko Vukcevic
497ccfada8 Updates (fixes) to adaptiveOverlapFringe
1. Clearing out temporary worker data for dynamic cases,
2. minLocalSuitability and orphanSuitability now given as fractions (0 to 1)
   instead of percentages (0 to 100%).
2018-07-16 12:51:21 +02:00
Vuko Vukcevic
ed06d9d919 Minor style change: adaptiveOverlapFringe 2018-07-12 19:34:32 +02:00
Vuko Vukcevic
eb1e30ecdb Updates to NACA4412-airfoil overset validationSuite case 2018-07-12 19:33:39 +02:00
Vuko Vukcevic
ea0466aa43 Adaptive overlap fringe algorithm by Josip Katavic 2018-07-12 15:37:20 +02:00
Vuko Vukcevic
8a1f5f66fc Updates to overlapFringe::evaluateNonOversetBoundaries
This function is now static instead of ordinary member function so it can be
used by adaptiveOverlapFringe. A slight reorganization of this is needed.
2018-07-12 15:35:22 +02:00
Vuko Vukcevic
c9cfe3cbf8 Compilation fixes due to updated code
1. Donor suitability functions now hold reference to oversetFringe (base class)
   and not the overlapFringe,
2. Missing curly braces in oversetRegion.
2018-07-12 14:19:52 +02:00
Vuko Vukcevic
7ae045b32b Changed directory structure for overlapFringe 2018-07-12 13:51:05 +02:00
Vuko Vukcevic
4b485ab906 Updates to oversetRegion
1. Avoid deleting holeCells and eligibleDonorCells if region has not found
   suitable overlap,
2. When choosing donors, make a preference depending on whether the donor is
   within acceptors bounding box (among other things).
2018-07-12 13:47:43 +02:00
Vuko Vukcevic
1e57733ed1 Updates to donorSuitability
Added suitabilityFraction member function which returns how suitable
donor and acceptor are (0: not suitable at all, 1: perfectly suitable).
2018-07-12 13:45:43 +02:00
Vuko Vukcevic
e56083051e Updates to donorAcceptor
Added data member to check whether the donor is within bounding box of the
acceptor.
2018-07-12 13:44:09 +02:00
Hrvoje Jasak
304d230d1a Fixed evaluation problem when regionCoupling is inactive 2018-07-06 10:08:24 +01:00
Hrvoje Jasak
e01e16c943 Refactorization of incompressible/compressible nut/mut wall functions. Author: Vuko Vukcevic. Merge: Hrvoje Jasak. 2018-06-20 13:34:29 +01:00
Hrvoje Jasak
d311db5954 Added public member functions that return accelerations (translational and rotational). Author: Vuko Vukcevic. Merge: Hrvoje Jasak. 2018-06-20 13:33:16 +01:00
Vuko Vukcevic
9e53ac1209 Updated mut in all tutorials
Using mutkWallFunction instead of mutWallFunction (this is abstract base now and
mutkWallFunction is the same as previous mutWallFunction)
2018-06-19 15:43:53 +02:00
Vuko Vukcevic
7167d46046 Updated nut in all tutorials
Using nutkWallFunction instead of nutWallFunction (this is abstract base now and
nutkWallFunction is the same as previous nutWallFunction)
2018-06-19 15:40:23 +02:00
Vuko Vukcevic
3de5d66021 Compilation bugfixes:
1. Forgot to define typeName and debug level for
   nutWallFunctionFvPatchScalarField and mutWallFunctionFvPatchScalarField
2. Forgot to remove declaration of write(Ostream&) member function in
   nutSpalartAllmarasWallFunction and mutSpalartAllmarasWallFunction
2018-06-19 15:38:48 +02:00
Vuko Vukcevic
4ec81f9103 Update to backwardsCompatibilityWallFunctions.C
autoCreateMut now creates mutkWallFunction by default (instead of abstract base
class mutWallFunction)
2018-06-19 15:22:23 +02:00
Vuko Vukcevic
306bd93e81 Removed deprecated mutRoughWallFunction
Replaced by mutkRoughWallFunction
2018-06-19 15:20:33 +02:00
Vuko Vukcevic
da6f48e599 Refactored remaining Spalart Allmaras mut wall functions
1. mutSpalartAllmarasStandardWallFunction: same as mutUWallFunction
2. mutSpalartAllmarasStandardRoughWallFunction: same as mutURoughWallFunction
3. mutSpalartAllmarasWallFunction: refactored such that it derives from
   mutWallFunction
2018-06-19 15:18:04 +02:00
Vuko Vukcevic
6681c7e1ee Added mutURoughWallFunction for compatibility with incompressible wall functions
This BC is the same as mutSpalartAlmarasStandardRoughWallFunction. We will
refactor mutSpalartAlmarasStandardRoughWallFunction such that it derives from
this BC in order to have both backward compatibility and compatibility with
incompressible wall functions.
2018-06-19 15:15:08 +02:00
Vuko Vukcevic
660326047d Added mutUWallFunction for compatibility with incompressible wall functions
This BC is the same as mutSpalartAlmarasStandardWallFunction. We will refactor
mutSpalartAlmarasStandardWallFunction such that it derives from this BC in order
to have both backward compatibility and compatibility with incompressible wall
functions.
2018-06-19 15:12:56 +02:00
Vuko Vukcevic
671ad26638 Refactored mutkRoughWallFunction according to the new interface 2018-06-19 15:09:56 +02:00
Vuko Vukcevic
3d7f902f82 Refactored nutkWallFunction according to the new interface
mutkWallFunctionFvPatchScalarField now derives from
mutWallFunctionFvPatchScalarField
2018-06-19 15:05:12 +02:00
Vuko Vukcevic
0726060d77 Refactored mutLowReWallFunction according to the new interface 2018-06-19 15:03:51 +02:00
Vuko Vukcevic
e7af83c8da Refactored mutWallFunctionFvPatchScalarField
This class is now abstract base class from which all other mut wall functions
will derive. Similar organization as for nutWallFunctionFvPatchField
2018-06-19 15:02:15 +02:00
Vuko Vukcevic
335d25ad1d Minor formatting in some nut wall functions 2018-06-19 14:55:12 +02:00
Vuko Vukcevic
003a9e9eb4 Update to backwardsCompatibilityWallFunctions.C
autoCreateNut now creates nutkWallFunction by default (instead of abstract base
class nutWallFunction)
2018-06-19 14:53:43 +02:00
Vuko Vukcevic
8241e75d28 Updated Make/files for refactored wall functions 2018-06-19 12:09:38 +02:00
Vuko Vukcevic
27ddb9849c Refactored nutLowReWallFunction according to the new interface 2018-06-19 12:09:14 +02:00
Vuko Vukcevic
5c16db8055 Refactored nutMEWTWallFunction according to the new interface 2018-06-19 12:06:55 +02:00
Vuko Vukcevic
a598804c79 Refactored nutCWTWallFunction according to new interface 2018-06-19 12:04:20 +02:00
Vuko Vukcevic
798d0f0a4d Refactored nutSpalartAllmarasWallFunction according to the new interface 2018-06-19 11:27:01 +02:00
Vuko Vukcevic
8612bd74d3 Removed deprecated nutRoughWallFunction
Replaced by nutkRoughWallFunction
2018-06-19 11:23:53 +02:00
Vuko Vukcevic
7bc178f100 Refactored nutSpalartAllmarasStandardRoughWallFunction
This wall function is now the same as nutURoughWallFunction, we simply derive
from it to enable backward compatibility.
2018-06-19 11:22:57 +02:00
Vuko Vukcevic
b31f23321a Refactored nutSpalartAllmarasStandardWallFunction
This wall function is now the same as nutUWallFunction, we simply derive from it
to enable backward compatibility.
2018-06-19 11:21:28 +02:00
Vuko Vukcevic
68d275b2b8 Backported nutURoughWallFunction from Vanilla
This BC is the same as nutSpalartAllmarasStandardRoughWallFunction. We will
refactor nutSpalartAllmarasStandardRoughWallFunction such that it derives from
this BC in order to have both backward compatibility and compatibility with
Vanilla.
2018-06-19 11:17:37 +02:00
Vuko Vukcevic
0c17c8057e Refactored nutkRoughWallFunction according to Vanilla
Derives from nutkWallFunctionFvPatchScalarField
2018-06-19 11:15:00 +02:00
Vuko Vukcevic
c4db345abe Backported nutUWallFunction from Vanilla
This BC is the same as nutSpalartAlmarasStandardWallFunction. We will refactor
nutSpalartAlmarasStandardWallFunction such that it derives from this BC in order
to have both backward compatibility and compatibility with Vanilla.
2018-06-19 11:10:32 +02:00
Vuko Vukcevic
f78472f100 Refactored nutkWallFunction according to Vanilla
nutkWallFunctionFvPatchScalarField now derives from
nutWallFunctionFvPatchScalarField
2018-06-19 11:07:06 +02:00