Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
integration-cfmesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Community
integration-cfmesh
Commits
8c473a87
Commit
8c473a87
authored
Dec 07, 2014
by
Franjo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added utility for scaling back the volume mesh.
parent
07979425
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
0 deletions
+91
-0
utilities/backScaleMesh/Make/files
utilities/backScaleMesh/Make/files
+3
-0
utilities/backScaleMesh/Make/options
utilities/backScaleMesh/Make/options
+10
-0
utilities/backScaleMesh/backScaleMesh.C
utilities/backScaleMesh/backScaleMesh.C
+78
-0
No files found.
utilities/backScaleMesh/Make/files
0 → 100644
View file @
8c473a87
backScaleMesh.C
EXE = $(FOAM_USER_APPBIN)/backScaleMesh
utilities/backScaleMesh/Make/options
0 → 100644
View file @
8c473a87
EXE_INC = \
-I../../meshLibrary/lnInclude \
-I$(LIB_SRC)/triSurface/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-ltriSurface \
-L$(FOAM_USER_LIBBIN) \
-lmeshLibrary \
-lmeshTools
utilities/backScaleMesh/backScaleMesh.C
0 → 100644
View file @
8c473a87
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | cfMesh: A library for mesh generation
\\ / O peration |
\\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
\\/ M anipulation | Copyright (C) Creative Fields, Ltd.
-------------------------------------------------------------------------------
License
This file is part of cfMesh.
cfMesh 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.
cfMesh 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 cfMesh. If not, see <http://www.gnu.org/licenses/>.
Description
Reads the specified surface and writes it in the fms format.
\*---------------------------------------------------------------------------*/
#include "argList.H"
#include "polyMeshGen.H"
#include "coordinateModifier.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Main program:
using
namespace
Foam
;
int
main
(
int
argc
,
char
*
argv
[])
{
# include "setRootCase.H"
# include "createTime.H"
IOdictionary
meshDict
(
IOobject
(
"meshDict"
,
runTime
.
system
(),
runTime
,
IOobject
::
MUST_READ
,
IOobject
::
NO_WRITE
)
);
polyMeshGen
pmg
(
runTime
);
pmg
.
read
();
pointFieldPMG
&
pts
=
pmg
.
points
();
if
(
!
meshDict
.
found
(
"geometryModification"
)
)
FatalError
<<
"Cannot backward scale mesh. geometryModification"
<<
" does not exist in meshDict"
<<
exit
(
FatalError
);
coordinateModifier
cMod
(
meshDict
.
subDict
(
"geometryModification"
));
//- apply backward transformation
forAll
(
pts
,
i
)
pts
[
i
]
=
cMod
.
backwardModifiedPoint
(
pts
[
i
]);
Info
<<
"Writting mesh with backward transformed points"
<<
endl
;
pmg
.
write
();
Info
<<
"End
\n
"
<<
endl
;
return
0
;
}
// ************************************************************************* //
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment