Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ddm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
ddm
Commits
9643882b
Commit
9643882b
authored
3 weeks ago
by
Boris Martin
Browse files
Options
Downloads
Patches
Plain Diff
Added reversed condition for ORAS
parent
b63ffa96
Branches
refactor_coupled
No related tags found
No related merge requests found
Pipeline
#12879
passed
3 weeks ago
Stage: gmshfem
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/helmholtz/comparisonORAS/OO2Configs.h
+25
-0
25 additions, 0 deletions
examples/helmholtz/comparisonORAS/OO2Configs.h
with
25 additions
and
0 deletions
examples/helmholtz/comparisonORAS/OO2Configs.h
+
25
−
0
View file @
9643882b
...
@@ -85,11 +85,36 @@ class TaylorOrderTwo : public AbstractOO2Config
...
@@ -85,11 +85,36 @@ class TaylorOrderTwo : public AbstractOO2Config
OO2
coefs
(
gmshfem
::
function
::
ScalarFunction
<
PetscScalar
>
k
)
const
override
OO2
coefs
(
gmshfem
::
function
::
ScalarFunction
<
PetscScalar
>
k
)
const
override
{
{
// For operator a + b*laplacian, not b grad grad
return
{
im
*
k
*
cos
(
_alpha
/
2
),
return
{
im
*
k
*
cos
(
_alpha
/
2
),
im
/
(
2.0
*
k
)
*
PetscScalar
(
cos
(
_alpha
/
2
),
+
sin
(
-
_alpha
/
2
))};
im
/
(
2.0
*
k
)
*
PetscScalar
(
cos
(
_alpha
/
2
),
+
sin
(
-
_alpha
/
2
))};
}
}
};
};
class
TaylorOrderTwoFlipped
:
public
AbstractOO2Config
{
public:
double
_alpha
=
0
;
std
::
string
_name
;
TaylorOrderTwoFlipped
(
std
::
string
name
,
double
alpha
)
:
_alpha
(
alpha
),
_name
(
name
)
{
}
std
::
string
name
()
const
override
{
return
_name
;
}
OO2
coefs
(
gmshfem
::
function
::
ScalarFunction
<
PetscScalar
>
k
)
const
override
{
// Flipped in ORAS
return
{
im
*
k
*
cos
(
_alpha
/
2
),
-
im
/
(
2.0
*
k
)
*
PetscScalar
(
cos
(
_alpha
/
2
),
+
sin
(
-
_alpha
/
2
))};
}
};
class
SommerfeldSecondOrderDamping
:
public
AbstractOO2Config
class
SommerfeldSecondOrderDamping
:
public
AbstractOO2Config
{
{
public:
public:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment