diff --git a/applications/utilities/mesh/conversion/Optional/Allwmake b/applications/utilities/mesh/conversion/Optional/Allwmake deleted file mode 100755 index 3fcc6f474b..0000000000 --- a/applications/utilities/mesh/conversion/Optional/Allwmake +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -#------------------------------------------------------------------------------ -cd ${0%/*} || exit 1 # Run from this directory - -# Optional component: continue-on-error -# - may not have third-party installed -export WM_CONTINUE_ON_ERROR=true - -# Parse arguments for compilation (at least for error catching) -. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments - -warning="==> skip ccmio" - -if settings=$($WM_PROJECT_DIR/bin/foamEtcFile config.sh/ccmio) -then - . $settings -else - echo "$warning (no config.sh/ccmio settings)" - exit -fi - -# Build libccmio (.a|.so) - use static linkage for fewer issues -$WM_THIRD_PARTY_DIR/makeCCMIO lib - -: ${FOAM_EXT_LIBBIN:=/usr/lib$WM_COMPILER_LIB_ARCH} # Extra safety -export FOAM_EXT_LIBBIN - -if [ -e $CCMIO_ARCH_PATH/include/libccmio/ccmio.h \ - -a \( -e $CCMIO_ARCH_PATH/lib/libccmio.a -o -e $FOAM_EXT_LIBBIN/libccmio.so \) ] -then - wmake $targetType ccm26ToFoam -else - echo $warning -fi - -#------------------------------------------------------------------------------ diff --git a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/files b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/files deleted file mode 100644 index 5bcd7d5c22..0000000000 --- a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -ccm26ToFoam.C - -EXE = $(FOAM_APPBIN)/ccm26ToFoam diff --git a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/options b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/options deleted file mode 100644 index 7e3235bf81..0000000000 --- a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/options +++ /dev/null @@ -1,9 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/meshTools/lnInclude \ - -I$(CCMIO_ARCH_PATH)/include - -EXE_LIBS = \ - -lfiniteVolume \ - -lmeshTools \ - -L$(CCMIO_ARCH_PATH)/lib -L$(FOAM_EXT_LIBBIN) -lccmio diff --git a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/README b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/README deleted file mode 100644 index 0d38d7abd5..0000000000 --- a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/README +++ /dev/null @@ -1,36 +0,0 @@ -1. how to write mesh from prostar - -Type ngeom,[name].ngeom,star in the command line. This will create a -.ngeom file of your Prostar model. - -If you have boundaries defined, these will be kept in the .ngeom file so -you won't have to rename and redefine the boundaries in ccm+. However, -the values (properties) are not exported. - -If you don't have boundaries you'll get a single wall patch in ccm+ that -you'll have to split accordingly. - -2. how to load it into star-ccm+ - -In ccm+ create a new simulation and do File>Import... - -Browse to the location where you have your .ngeom file, select it, press -OK and that's it. - -3. how to do merging (or is automatic?) - -If you had couples in your Prostar model, your meshes will all be -"fused" together automatically in ccm+ when you import the .ngeom file. -Keep a look on the output window in Prostar when you run the ngeom -command to make sure the couples are exported OK. - -Alternatively, you can "fuse" the different fluid regions in ccm+. To do -this select all the fluid regions you want to merge together from the -command tree on the left of your screen, under Regions. Press control -and click on top of each one, once you've selected all, click the -right-hand buttom of your mouse and select Fuse... - -4. how to save it from star-ccm+ - -Once your model is ready in ccm+ (i.e. all regions and boundary patches -defined), go to File>Export... and select .ccm format. diff --git a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C deleted file mode 100644 index 1bb9e503e5..0000000000 --- a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C +++ /dev/null @@ -1,1166 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Application - ccm26ToFoam - -Group - grpMeshConversionUtilities - -Description - Reads CCM files as written by Prostar/ccm using ccm 2.6 (not 2.4) - - - does polyhedral mesh - - does not handle 'interfaces' (couples) - - does not handle cyclics. Use createPatch to recreate these - - does not do data - - does patch names only if they are in the problem description - -\*---------------------------------------------------------------------------*/ - -#include "ListOps.H" -#include "argList.H" -#include "Time.H" -#include "fvMesh.H" -#include "volFields.H" -#include "emptyPolyPatch.H" -#include "symmetryPolyPatch.H" -#include "wallPolyPatch.H" -#include "SortableList.H" -#include "cellSet.H" - -#include "libccmio/ccmio.h" -#include - -using namespace Foam; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -static char const kDefaultState[] = "default"; -static int const kVertOffset = 2; - - -// Determine upper-triangular order for internal faces: -labelList getInternalFaceOrder -( - const cellList& cells, - const labelList& owner, - const labelList& neighbour -) -{ - labelList oldToNew(owner.size(), -1); - - // First unassigned face - label newFacei = 0; - - forAll(cells, celli) - { - const labelList& cFaces = cells[celli]; - - SortableList